Skip to content

Commit

Permalink
Use common CI infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
ellismg committed Nov 9, 2018
1 parent fb9a23c commit 79a590a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 128 deletions.
27 changes: 13 additions & 14 deletions .travis.yml
Expand Up @@ -2,26 +2,25 @@ if: branch = master
language: go
go: 1.9
sudo: true # give us 7.5GB and >2 bursted cores.
git:
depth: false
before_install:
# Dep for Go dependency management.
- go get -v github.com/golang/dep/cmd/dep
# Node.js 6.10.2 for all JavaScript code (to match AWS Lambda).
- nvm install v8.10
# Install Yarn as per https://yarnpkg.com/lang/en/docs/install-ci/#travis-tab.
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.2.1
- export PATH=$HOME/.yarn/bin:$PATH
# Install Pulumi
- curl -L https://get.pulumi.com/ | bash -s -- --version 0.15.2
- 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:
- source ${PULUMI_SCRIPTS}/ci/install-common-toolchain.sh
- curl -L https://get.pulumi.com/ | bash -s -- --version 0.16.3
- export PATH=$HOME/.pulumi/bin:$PATH
# Install Helm
- curl -o- -L https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
- helm init -c
- helm repo add bitnami https://charts.bitnami.com/bitnami
install:
# Now restore all dependencies, after cloning, to rebuild vendor appropriately.
- cd misc/test
- dep ensure -v
before_script:
- ${PULUMI_SCRIPTS}/ci/ensure-dependencies
script:
- go test . --timeout 1h -v -short
- go test ./misc/test/... --timeout 1h -v -count=1 -short
after_failure:
- ${PULUMI_SCRIPTS}/ci/upload-failed-tests
notifications:
webhooks: https://ufci1w66n3.execute-api.us-west-2.amazonaws.com/stage/travis
2 changes: 2 additions & 0 deletions Makefile
@@ -0,0 +1,2 @@
ensure:
cd misc/test && dep ensure -v

0 comments on commit 79a590a

Please sign in to comment.