forked from IBM-Cloud/vpc-tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (65 loc) · 3.62 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
60
61
62
63
64
65
66
67
68
69
70
71
# only run the test on master
branches:
only:
- master
# to easily encrypt values: https://travis-encrypt.github.io/
# https://docs.travis-ci.com/user/languages/minimal-and-generic/
language: minimal
# https://docs.travis-ci.com/user/notifications/#configuring-slack-notifications
notifications:
slack:
secure: l1RIDDiYcHqfCg0cHjHY7Tg+AaeZJ6mAtN9Z4dlrWwJpQy6mOePJ2dAjp6OJsPqaU+RNseGSsCiPdFnZT7y7R/w4dRymUieHK4exCfEa/1lVJPqf4+69OUcFdr4m1SeytApH0zv/jDf23EelusJlWxvRlC836HjWGCHSicVR+aYcJ5LMrHKKtnEr/f0eyJoNEtEsW7yJhOoEO9NznckMZXjVEtumOcPDZQ4mRpWZrXWADES8NOjNIWmECNwPQVQv4GlrMAQrw75pLBJ/8+Z6pMv0Fask9HFE5ThwscY7Ja4D7e3CXQdUJ/655PH154NqRnOZhLLA99+zheMpQJwtfCjdHWRDgGrnO6+chm5UlTzkHtEZGQ6/IowsJ38xTVBjBhkudE3Q6zvI0zQ7RfiLgA7LSyUy61YJczikSjJppXA4Ti/Y6NkbZJv/BC9SgGeQhDITAiPO6k4UTdNqk9O9SgokiPgT0dJAqg+1QfMKgWOMNREsLAmxUY8/lnymgnRReopk/j14AXtkoDvPAaiQDotKzu+2UFXo5iE0FE+VfDOR4hWVJwXGl3zNDuTWCXgXx0m9Iy31zkssR6t2aLxiIh3wyY0nMkFfR//2PqX8sFgS69vCKr6XL/o5U7GqNnnui4yiylI1Uyjliy/ebH+jhIiAKVAwZPQTBRXXg9f+SR0=
services:
- docker
# https://docs.travis-ci.com/user/build-matrix/
env:
global:
- TEST_VPC_NAME=tests-us
- RESOURCE_GROUP=automated-tests
- REGION=us-south
- DATACENTER=dal10
matrix:
#
# Start with a clean environment
#
- TARGET_GENERATION=1 SCENARIO=cleanup-initial TEST=tests/teardown.sh
- TARGET_GENERATION=2 SCENARIO=cleanup-initial TEST=tests/teardown.sh
#
# Terraform tests
#
- TERRAFORM_VERSION=latest TARGET_GENERATION=2 SCENARIO=vpc-one-vsi TEST=tests/vpc-one-vsi/create-with-terraform.sh
- TERRAFORM_VERSION=latest TARGET_GENERATION=2 SCENARIO=cleanup-vpc-one-vsi TEST=tests/teardown.sh
- TERRAFORM_VERSION=latest TARGET_GENERATION=2 SCENARIO=vpc-public-app-private-backend TEST=tests/vpc-public-app-private-backend/create-with-terraform.sh
- TERRAFORM_VERSION=latest TARGET_GENERATION=2 SCENARIO=cleanup-with-terraform-vpc-public-app-private-backend TEST=tests/teardown.sh
- TERRAFORM_VERSION=latest TARGET_GENERATION=2 SCENARIO=vpc-site2site-vpn TEST=tests/vpc-site2site-vpn/create-with-terraform.sh TEARDOWN=tests/vpc-site2site-vpn/teardown.sh
- TERRAFORM_VERSION=latest TARGET_GENERATION=2 SCENARIO=cleanup-with-terraform-vpc-site2site-vpn TEST=tests/teardown.sh
- TERRAFORM_VERSION=latest TARGET_GENERATION=1 SCENARIO=vpc-cockroachdb-mzr TEST=tests/vpc-cockroachdb-mzr/create-with-terraform.sh
- TERRAFORM_VERSION=latest TARGET_GENERATION=1 SCENARIO=cleanup-with-terraform-vpc-cockroachdb-mzr TEST=tests/teardown.sh
#
# IBM Cloud CLI tests
#
- TARGET_GENERATION=2 SCENARIO=vpc-multi-region TEST=tests/vpc-multi-region/create.sh
- TARGET_GENERATION=2 SCENARIO=cleanup-vpc-multi-region TEST=tests/teardown.sh
- TARGET_GENERATION=2 SCENARIO=vpc-public-app-private-backend TEST=tests/vpc-public-app-private-backend/create.sh
- TARGET_GENERATION=2 SCENARIO=cleanup-vpc-public-app-private-backend TEST=tests/teardown.sh
- TARGET_GENERATION=2 SCENARIO=vpc-site2site-vpn TEST=tests/vpc-site2site-vpn/create.sh TEARDOWN=tests/vpc-site2site-vpn/teardown.sh
- TARGET_GENERATION=2 SCENARIO=cleanup-vpc-site2site-vpn TEST=tests/teardown.sh
script:
- |
docker run -i --volume $PWD:/root/mnt/home --workdir /root/mnt/home \
--env SCENARIO \
--env TEST \
--env TEARDOWN \
--env API_KEY \
--env IAAS_CLASSIC_USERNAME \
--env IAAS_CLASSIC_API_KEY \
--env REGION \
--env DATACENTER \
--env TARGET_GENERATION \
--env RESOURCE_GROUP \
--env TEST_VPC_NAME \
--env KEYS \
--env JOB_ID=$TRAVIS_JOB_ID \
--env TRAVIS \
--env TERRAFORM_VERSION \
l2fprod/bxshell tests/runner.sh