-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
31 lines (27 loc) · 936 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
30
31
# 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
- pip install -r tests/requirements.txt
- 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
- python tests/infra_test.py
post:
- echo "remove api stage"
teardown:
pre:
- ansible-playbook -e "prefix=circle-${CIRCLE_BUILD_NUM}" destroy.yml