summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorBrett Holman <brett.holman@canonical.com>2021-12-08 17:31:33 -0700
committerGitHub <noreply@github.com>2021-12-08 18:31:33 -0600
commit6760bf1462d1686ee97d08a626cc0892cea588bf (patch)
treedb7b431170e84ceed1ea4a12fd64a6409a94076f /.travis.yml
parent65c2cfd7f21758746444c8c79444994a4638d563 (diff)
downloadvyos-cloud-init-6760bf1462d1686ee97d08a626cc0892cea588bf.tar.gz
vyos-cloud-init-6760bf1462d1686ee97d08a626cc0892cea588bf.zip
travis - don't run integration tests if no deb (#1139)
If building the *.deb fails, exit Currently integration tests will run and fail with a non-obvious message. This makes it so the last thing in the logs is whatever caused the build to fail.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 1582e829..9470cc31 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -119,9 +119,11 @@ matrix:
sudo tar --sparse --xattrs --xattrs-include=* -cf "$TRAVIS_BUILD_DIR/chroots/xenial-amd64.tar" -C /var/lib/schroot/chroots/xenial-amd64 .
fi
# Use sudo to get a new shell where we're in the sbuild group
- - sudo -E su $USER -c 'sbuild --nolog --no-run-lintian --verbose --dist=xenial cloud-init_*.dsc'
- - ssh-keygen -P "" -q -f ~/.ssh/id_rsa
- - sg lxd -c 'CLOUD_INIT_CLOUD_INIT_SOURCE="$(ls *.deb)" tox -e integration-tests-ci'
+ # Don't run integration tests when build fails
+ - |
+ sudo -E su $USER -c 'sbuild --nolog --no-run-lintian --verbose --dist=xenial cloud-init_*.dsc' &&
+ ssh-keygen -P "" -q -f ~/.ssh/id_rsa &&
+ sg lxd -c 'CLOUD_INIT_CLOUD_INIT_SOURCE="$(ls *.deb)" tox -e integration-tests-ci'
- python: 3.5
env:
TOXENV=xenial