-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy path.travis.yml
36 lines (35 loc) · 1.52 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
# It may be tempting to add parens around each individual clause in this expression, but Travis then builds pushes anyway
if: branch = master OR branch =~ ^release/ OR tag IS present
language: go
go: "1.10"
sudo: true # give us 7.5GB and >2 bursted cores.
git:
depth: false
before_install:
- git clone https://github.com/pulumi/scripts ${GOPATH}/src/github.com/pulumi/scripts
- source ${GOPATH}/src/github.com/pulumi/scripts/ci/prepare-environment.sh
- source ${PULUMI_SCRIPTS}/ci/keep-failed-tests.sh
install:
# Install Pulumi and resource plugins.
- source ${PULUMI_SCRIPTS}/ci/install-common-toolchain.sh
- curl -L https://get.pulumi.com/ | bash -s -- --version 0.15.1
- export PATH=$HOME/.pulumi/bin:$PATH
- pulumi plugin install resource aws 0.15.1
- pulumi plugin install resource azure 0.15.2
- pulumi plugin install resource gcp 0.15.1
- pulumi plugin install resource terraform-template 0.15.0
# Install Terraform.
- curl -sLo /tmp/terraform.zip https://releases.hashicorp.com/terraform/0.11.8/terraform_0.11.8_linux_amd64.zip
- unzip /tmp/terraform.zip -d /tmp
- mv /tmp/terraform ~/bin
- export PATH="~/bin:$PATH"
before_script:
- ${PULUMI_SCRIPTS}/ci/ensure-dependencies
script:
- ${PULUMI_SCRIPTS}/ci/heartbeat-with-timestamps& HEARTBEAT_PID=$!
- make travis_${TRAVIS_EVENT_TYPE}
- kill $HEARTBEAT_PID
after_failure:
- ${PULUMI_SCRIPTS}/ci/upload-failed-tests
notifications:
webhooks: https://ufci1w66n3.execute-api.us-west-2.amazonaws.com/stage/travis