pulumi/.travis.yml
Matt Ellis 9bf6c976bc Install fixed versions of our tools
For some tools we used, like `dep` and `gometalinter` we were just
calling `go install` which caused us to pick up whatever was in `HEAD`
at that time. Now, we move to a model where we install fixed versions,
which will change per milestone.

While doing this, I changed the way our .travis.yml file runs
everything to move as much as possible out into scripts and do so in a
way that allows us to share as much common logic across our
repositories.
2018-02-20 11:50:08 -08:00

24 lines
708 B
YAML

# 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
jobs:
include:
- os: linux
- os: osx
language: go
go: 1.9
sudo: true # give us 7.5GB and >2 bursted cores.
git:
depth: false
before_install:
- source ./build/travis/prepare-environment.sh
install:
- source ./build/travis/install-common-toolchain.sh
before_script:
- ./build/travis/ensure-dependencies
script:
- make travis_${TRAVIS_EVENT_TYPE}
after_failure:
- ./build/travis/upload-failure-logs
notifications:
webhooks: https://ufci1w66n3.execute-api.us-west-2.amazonaws.com/stage/travis