Skip to content

Commit a66dfc3

Browse files
Build twice on deploy
It's not at all clear why travis cleans up the first build; it works locally.
1 parent 3e98667 commit a66dfc3

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.travis.before-deploy.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
#!/bin/sh
1+
#!/bin/bash -ex
2+
3+
# build again since I can't figure out how to get travis to recognize the old
4+
# build in the new container. The other alternative (besides actually solving
5+
# the issue) is to run the docs build and tarball generation every time.
6+
./.travis.sh
27

38
source ./.venv/bin/activate
49

@@ -27,7 +32,6 @@ mkdir ./tag_build
2732

2833
# create and checksum the tarball
2934

30-
# no bashisms for portability
3135
if [ x"${TRAVIS_TAG#v[0-9]}" = "x${TRAVIS_TAG}" ]; then
3236
PYTHON_GSSAPI_VERSION=${TRAVIS_TAG}
3337
else

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ before_deploy:
3333
-w /tmp/build
3434
-e TRAVIS_TAG=$TRAVIS_TAG
3535
-e PKG_NAME_VER=$PKG_NAME_VER
36+
-e KRB5_VER=$KRB5_VER
37+
-e PYTHON=$PYTHON
3638
$DISTRO
37-
/bin/sh -x .travis.before-deploy.sh
39+
/bin/bash -ex .travis.before-deploy.sh
3840
deploy:
3941
- provider: releases
4042
api_key:

0 commit comments

Comments
 (0)