Skip to content

Commit

Permalink
Fix conduit version issue in integration tests (#1139)
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Lingerfelt <kl@buoyant.io>
  • Loading branch information
klingerf committed Jun 15, 2018
1 parent a68ca73 commit c750006
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ jobs:
language: go
go: "1.10.2"
go_import_path: github.com/runconduit/conduit
services:
- docker

cache:
directories:
Expand All @@ -162,20 +164,27 @@ jobs:
- |
# Get a kubernetes context.
(. bin/_gcp.sh ; get_k8s_ctx "$GCP_PROJECT" "$GCP_ZONE" "$GKE_CLUSTER")
- |
# Install conduit cli.
version="git-$(git rev-parse --short=8 HEAD)"
image="gcr.io/runconduit/cli-bin:$version"
id=$(docker create $image)
docker cp "$id:/out/conduit-linux" "./conduit"
- gcloud version
- kubectl version --short
- ./conduit version --client

script:
- |
# Run integration tests.
version=$(./bin/go-run cli version --client --short)
namespace=conduit-$(echo $version | tr -cd '[:alnum:]-')
./bin/test-run $(pwd)/.gorun $namespace
version="$(./conduit version --client --short | tr -cd '[:alnum:]-')"
./bin/test-run `pwd`/conduit conduit-$version
after_script:
- |
# Cleanup after integration test run.
./bin/test-cleanup "conduit-$(./bin/root-tag | tr -cd '[:alnum:]-')"
version="$(./conduit version --client --short | tr -cd '[:alnum:]-')"
./bin/test-cleanup conduit-$version
# If we want to start building everything against bleeding-edge Rust nightly, we'll have
# to enable:
Expand Down

0 comments on commit c750006

Please sign in to comment.