Add "run at HEAD" leg to cron job
Our nightly cron job will now run our examples tests twice. First,
the normal run will happen. Next, we'll run again but use the latest
CLI and the latest versions of all our NPM packages.
MODIFY
.travis.yml
.travis.yml
if: branch = master
language: go
-go: 1.9
+go: 1.11
sudo: true # give us 7.5GB and >2 bursted cores.
git:
depth: false
@@ -18,8 +18,12 @@ install:
- helm repo add bitnami https://charts.bitnami.com/bitnami
before_script:
- ${PULUMI_SCRIPTS}/ci/ensure-dependencies
-script:
- - go test ./misc/test/... --timeout 1h -v -count=1 -short
+jobs:
+ include:
+ - script: make travis_${TRAVIS_EVENT_TYPE}
+ - stage: latest
+ if: type = cron
+ script: ${GOPATH}/src/github.com/pulumi/scripts/ci/run-at-head
after_failure:
- ${PULUMI_SCRIPTS}/ci/upload-failed-tests
notifications:

MODIFY
Makefile
Makefile
+.PHONY: ensure only_build only_test all
+
+all: only_build only_test
+
ensure:
cd misc/test && dep ensure -v
+
+only_build:
+
+only_test:
+ go test ./misc/test/... --timeout 1h -v -count=1 -short
+
+# The travis_* targets are entrypoints for CI.
+.PHONY: travis_cron travis_push travis_pull_request travis_api
+travis_cron: all
+travis_push: all
+travis_pull_request: all
+travis_api: all

MODIFY
misc/test/Gopkg.lock
misc/test/Gopkg.lock
"pkg/workspace",
"sdk/proto/go"
]
- revision = "676adf62b8d4d5dc83a7cf91eff0eb6d2eb1b9a8"
+ revision = "8cbe6554f5e84d405e09c9e97b7cc09a908a56a6"
[[projects]]
branch = "master"
"core",
"terminal"
]
- revision = "fb519f89e19299d852ffdd9b734af122d2dcbd30"
- version = "v1.7.0"
+ revision = "3409e8256f5cf23a9e9ee2a8816c4c5da78a181d"
+ version = "v1.6.4"
[[projects]]
name = "gopkg.in/src-d/go-billy.v4"

MODIFY
misc/test/Gopkg.toml
misc/test/Gopkg.toml
[[constraint]]
name = "github.com/pulumi/pulumi"
branch = "master"
+

MODIFY
misc/test/examples_test.go
misc/test/examples_test.go
@@ -31,10 +31,15 @@ func TestExamples(t *testing.T) {
if !assert.NoError(t, err, "expected a valid working directory: %v", err) {
return
}
+ overrides, err := integration.DecodeMapString(os.Getenv("PULUMI_TEST_NODE_OVERRIDES"))
+ if !assert.NoError(t, err, "expected valid override map: %v", err) {
+ return
+ }
base := integration.ProgramTestOptions{
Tracing: "https://tracing.pulumi-engineering.com/collector/api/v1/spans",
ExpectRefreshChanges: true,
+ Overrides: overrides,
}
examples := []integration.ProgramTestOptions{

Add "run at HEAD" leg to cron job

Our nightly cron job will now run our examples tests twice. First,
the normal run will happen. Next, we'll run again but use the latest
CLI and the latest versions of all our NPM packages.