forked from tmobile/jazz-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (36 loc) · 885 Bytes
/
.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
language: python
sudo: false
cache:
directories:
- "${HOME}/bin"
branches:
only:
- master
- develop
env:
global:
- PATH="${HOME}/bin
- TMPDIR="${TMPDIR:-/tmp}"
- VERSION="0.11.7"
#this needs to be set for `terraform init` to work, and we need that to work for the Terraform CI checks
- AWS_DEFAULT_REGION="us-east-1"
before_install:
- if ! terraform version ; then
mkdir -p "${HOME}/bin"
pushd "${TMPDIR}" ;
curl -sSL
-o terraform.zip
"https://releases.hashicorp.com/terraform/${VERSION}/terraform_${VERSION}_linux_amd64.zip" ;
unzip terraform.zip ;
mv -v terraform "${HOME}/bin/terraform" ;
chmod +x "${HOME}/bin/terraform" ;
popd ;
terraform version ;
fi
install:
- "pip install flake8"
script:
- test/python-unittests.sh
- test/check-tf.sh
- test/check-py.sh
- test/check-bash.sh