Skip to content

Commit

Permalink
Adding the GCP tests to the provider runs
Browse files Browse the repository at this point in the history
  • Loading branch information
stack72 committed Feb 17, 2020
1 parent 955faaa commit 74c1018
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 17 deletions.
34 changes: 22 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,31 @@ language: go
go: 1.13.x
sudo: true
git:
depth: false
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
- openssl aes-256-cbc -K $encrypted_983fc6da883c_key -iv $encrypted_983fc6da883c_iv
-in gcp-credentials.json.enc -out gcp-credentials.json -d
- 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
before_script:
- "${PULUMI_SCRIPTS}/ci/ensure-dependencies"
- "${PULUMI_SCRIPTS}/ci/ensure-dependencies"
install:
- source ${PULUMI_SCRIPTS}/ci/install-common-toolchain.sh
- curl -L https://get.pulumi.com/ | bash
- export PATH=$HOME/.pulumi/bin:$PATH
- source ${PULUMI_SCRIPTS}/ci/install-common-toolchain.sh
- curl -L https://get.pulumi.com/ | bash
- export PATH=$HOME/.pulumi/bin:$PATH
- export CLOUDSDK_PYTHON=python3
- if [ ! -d ${HOME}/google-cloud-sdk/bin ]; then export CLOUDSDK_CORE_DISABLE_PROMPTS=1;
rm -rf ${HOME}/google-cloud-sdk; curl https://sdk.cloud.google.com | bash; fi
- export PATH=${HOME}/google-cloud-sdk/bin:$PATH
- CLOUDSDK_PYTHON=/usr/bin/python gcloud version
- export GOOGLE_CREDENTIALS=$(cat gcp-credentials.json)
- CLOUDSDK_PYTHON=/usr/bin/python gcloud auth activate-service-account --key-file
gcp-credentials.json
script:
- make ensure
- make test_templates
- make ensure
- make test_templates
after_failure:
- "${PULUMI_SCRIPTS}/ci/upload-failed-tests"
- "${PULUMI_SCRIPTS}/ci/upload-failed-tests"
notifications:
webhooks: https://zlmgkhmhjc.execute-api.us-west-2.amazonaws.com/stage/travis
webhooks: https://zlmgkhmhjc.execute-api.us-west-2.amazonaws.com/stage/travis
Binary file added gcp-credentials.json.enc
Binary file not shown.
2 changes: 1 addition & 1 deletion gcp-csharp/${PROJECT}.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Pulumi.Gcp" Version="1.9.0-preview" />
<PackageReference Include="Pulumi.Gcp" Version="2.6.0-preview" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion gcp-fsharp/${PROJECT}.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<ItemGroup>
<PackageReference Include="Pulumi.FSharp" Version="1.10.1-preview" />
<PackageReference Include="Pulumi.Gcp" Version="1.9.0-preview" />
<PackageReference Include="Pulumi.Gcp" Version="2.6.0-preview" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions gcp-go/Gopkg.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[[constraint]]
version = "v1.0.0"
version = "v1.10.1"
name = "github.com/pulumi/pulumi"

[[constraint]]
version = "v1.0.0"
version = "v2.6.0"
name = "github.com/pulumi/pulumi-gcp"

[prune]
Expand Down
2 changes: 1 addition & 1 deletion gcp-visualbasic/${PROJECT}.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Pulumi.Gcp" Version="1.9.0-preview" />
<PackageReference Include="Pulumi.Gcp" Version="2.6.0-preview" />
</ItemGroup>

</Project>

0 comments on commit 74c1018

Please sign in to comment.