forked from jkwong888/terraform-icp-ibmcloud
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.travis.yml
45 lines (38 loc) · 1.3 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
dist: xenial
language: minimal
os:
- linux
env:
global:
- TERRAFORM_VER="0.11.13"
- TF_VAR_deployment="travisci${TRAVIS_JOB_ID}"
- TF_VAR_sl_username="${sl_username}"
- TF_VAR_sl_api_key="${sl_api_key}"
- REG_IMAGE="ibmcom-amd64/icp-inception:3.1.2-ee"
- ICP_VALIDATION_BRANCH=minimal
matrix:
## Community Edition Builds
# CE minimal
- NAME: "CE Minimal"
TERRAFORM_DIR: "${TRAVIS_BUILD_DIR}/templates/icp-ce-minimal"
TERRAFORM_VARS_FILE: "${TERRAFORM_DIR}/terraform-minimal-example.tfvars"
# CE With loadbalancers
- NAME: "CE with loadbalancer"
TERRAFORM_DIR: "${TRAVIS_BUILD_DIR}/templates/icp-ce-with-loadbalancers"
TERRAFORM_VARS_FILE: "${TERRAFORM_DIR}/terraform-minimal-example.tfvars"
# TODO: Add enterprise edition
# Ensure we have ibmcloud terraform provider
before_install:
- mkdir -p ~/.terraform.d/plugins
- wget -P /tmp/ https://github.com/IBM-Cloud/terraform-provider-ibm/releases/download/v0.16.1/linux_amd64.zip
- unzip /tmp/linux_amd64.zip -d ~/.terraform.d/plugins
# Init the build harness
before_script:
- make init
# Deploy the environment if changes in the relevant template
script:
- make deploy-icp-if-tfchange
- make validate-icp
# When everything has completed we can clean up the environment
after_script:
- make cleanup