-
Notifications
You must be signed in to change notification settings - Fork 3
/
circle.yml
29 lines (25 loc) · 859 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# test api call from swagger and expected examples
machine:
python:
version: 2.7.10
environment:
JAVA_HOME: /usr/lib/jvm/java-8-openjdk-amd64
PATH: ${JAVA_HOME}/bin:${PATH}
AWS_DEFAULT_REGION: us-east-1
dependencies:
pre:
- pip install --upgrade pip
- pip install awscli
- pip install ansible
- pip install boto
- sudo apt-get install jq
- wget https://circle-artifacts.com/gh/ryandub/aws-apigateway-importer/2/artifacts/0/home/ubuntu/aws-apigateway-importer/target/aws-apigateway-importer.jar -O ./aws-apigateway-importer.jar
test:
override:
- echo "deploying with prefix circle-${CIRCLE_BUILD_NUM}"
- ansible-playbook -e "prefix=circle-${CIRCLE_BUILD_NUM}" deploy.yml
post:
- echo "remove api stage"
teardown:
pre:
- ansible-playbook -e "prefix=circle-${CIRCLE_BUILD_NUM}" destroy.yml