forked from apurvasingh/cloudpassage-halo-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
59 lines (59 loc) · 8.35 KB
/
.travis.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
sudo: required
language: python
services:
- docker
stages:
- setup
- test
- teardown
jobs:
include:
- stage: setup
script: docker run -it --rm -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}"
-e "AWS_REGION=${AWS_REGION}" -e "ENVIRONMENT_NAME=${ENVIRONMENT_NAME}" ${TESTING_IMAGE_NAME}
deprovision && docker run -it --rm -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}"
-e "ENVIRONMENT_NAME=${ENVIRONMENT_NAME}" -e "AMI_ID=${AMI_ID}" -e "AWS_SSH_KEY_NAME=${AWS_SSH_KEY_NAME}"
-e "AWS_REGION=${AWS_REGION}" -e "HALO_AGENT_KEY=${HALO_AGENT_KEY}" -e "SERVER_COUNT=${SERVER_COUNT}"
-e "CLI_CMD=${CLI_CMD}" ${TESTING_IMAGE_NAME} provision
- stage: test
script: docker build -t cloudpassage_halo_python_sdk:2.7.10 --build-arg PY_VER=2.7.10 . && docker run -it --rm -e HALO_API_KEY=${HALO_API_KEY} -e HALO_API_SECRET_KEY=${HALO_API_SECRET_KEY}
-e HALO_API_HOSTNAME=${HALO_API_HOSTNAME} -e HALO_API_PORT=${HALO_API_PORT} -e CODECLIMATE_REPO_TOKEN=${CODECLIMATE_REPO_TOKEN}
-e CC_TEST_REPORTER_ID=${CC_TEST_REPORTER_ID}
-e TRAVIS_BRANCH=${TRAVIS_BRANCH} -e PY_VER=2.7.10 -e PYTEST_MODULE="py.test" cloudpassage_halo_python_sdk:2.7.10
/source/run_tests.sh
- script: docker build -t cloudpassage_halo_python_sdk:2.7.15 --build-arg PY_VER=2.7.15 . && docker run -it --rm -e HALO_API_KEY=${HALO_API_KEY} -e HALO_API_SECRET_KEY=${HALO_API_SECRET_KEY}
-e HALO_API_HOSTNAME=${HALO_API_HOSTNAME} -e HALO_API_PORT=${HALO_API_PORT}
-e TRAVIS_BRANCH=${TRAVIS_BRANCH} -e PY_VER=${PY_VER} -e PYTEST_MODULE="py.test" cloudpassage_halo_python_sdk:2.7.15
/source/run_tests.sh
- script: docker build -t cloudpassage_halo_python_sdk:3.6.5 --build-arg PY_VER=3.6.5 . && docker run -it --rm -e HALO_API_KEY=${HALO_API_KEY} -e HALO_API_SECRET_KEY=${HALO_API_SECRET_KEY}
-e HALO_API_HOSTNAME=${HALO_API_HOSTNAME} -e HALO_API_PORT=${HALO_API_PORT}
-e TRAVIS_BRANCH=${TRAVIS_BRANCH} -e PY_VER=${PY_VER} -e PYTEST_MODULE="pytest" cloudpassage_halo_python_sdk:3.6.5
/source/run_tests.sh
- script: docker build -t cloudpassage_halo_python_sdk:3.7.0 --build-arg PY_VER=3.7.0 . && docker run -it --rm -e HALO_API_KEY=${HALO_API_KEY} -e HALO_API_SECRET_KEY=${HALO_API_SECRET_KEY}
-e HALO_API_HOSTNAME=${HALO_API_HOSTNAME} -e HALO_API_PORT=${HALO_API_PORT}
-e TRAVIS_BRANCH=${TRAVIS_BRANCH} -e PY_VER=${PY_VER} -e PYTEST_MODULE="pytest" cloudpassage_halo_python_sdk:3.7.0
/source/run_tests.sh
after_success: docker run -it --rm -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}"
-e "AWS_REGION=${AWS_REGION}" -e "ENVIRONMENT_NAME=${ENVIRONMENT_NAME}" ${TESTING_IMAGE_NAME}
deprovision
after_failure: docker run -it --rm -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}"
-e "AWS_REGION=${AWS_REGION}" -e "ENVIRONMENT_NAME=${ENVIRONMENT_NAME}" ${TESTING_IMAGE_NAME}
deprovision
env:
global:
- AMI_ID=ami-28e07e50
- CLI_CMD=IyEvYmluL3NoCgp5dW0gaW5zdGFsbCBodHRwZAo=
- TESTING_IMAGE_NAME=docker.io/halotools/halo-test-environment:v0.1
- AWS_SSH_KEY_NAME=ci_cloudpassage_cloudpassage-halo-python-sdk
- AWS_REGION=us-west-2
- SERVER_COUNT=1
- HALO_API_HOSTNAME=api.cloudpassage.com
- HALO_API_PORT=443
- ENVIRONMENT_NAME=SDK
- secure: hLDLZ3PuvyEgrRacmy0qmXjc1xUDVJXN2vtEYTx+J2toICa0urseM5j+DbnVHJCI6wEM6MUZ7BzTLyF4rfRBP5aXfsDne3a2yVN/Bj9kIFPH4FQZoJ8tZl7lgE9YkvWQ1RBloxzi9f4iewOQpXO/S0s8P2Khs9xwDjJxRpdtPnEVFx9rCRkM1TIsLJvfd8x7pfGBGptrosaZmNPoT5roUcajceEeNfYRo8JrqzojAalha145X8968KdozaOVv1LwCIMFgY+vedHB19MpHrXlwJxRnN2GaVshMXFvlifD8ha6+7N9Wtdk7hb1p+YR9B4mATjt8Q/+Sj2a1HnA1fHNppWega4a/y3R3CL8Gkzbf4SZGGwLYxqN3jjcOBvxIqwAt9hiUMxTx38xVCdHDZRpxXh6G0IQgiJY4YqVn9m8MblB5W2ktgxtu63wGl+da+NasTRfYJy47Du6Jp/S61nKHmomylTx7HnucuOhMO2hDdItC/mCGQ49lQxAZHA9zR4KZIBHJ6jYwwuMB1H436VghIVd6LizMDXGyLn+Zs62OapdlBGXjccb1BCmewsGnRcHoi7nCsK/NeoNE+lmN6ao1gAW4L9lc3Bxh294EVXi9yGqXNgg2ZFdlt87HV7THA5RHu7Fqfnr6HkOGWmd3Ejf6pk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