travis: correct python version

This commit is contained in:
Jörg Thalheim 2018-06-29 12:55:01 +01:00
parent a093afd23a
commit 259973f0cc
2 changed files with 12 additions and 15 deletions

View file

@ -5,5 +5,6 @@ before_install:
- eval "$(ssh-agent -s)"
- ssh-add deploy_key
- rm deploy_key
- source ~/virtualenv/python3.6/bin/activate
script:
- bash ci/deploy.sh

View file

@ -3,9 +3,7 @@
set -eux -o pipefail # Exit with nonzero exit code if anything fails
# Pull requests and commits to other branches shouldn't try to deploy, just build to verify
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]] || \
[[ "$TRAVIS_BRANCH" != master ]] && \
[[ "$TRAVIS_BRANCH" != "$(cat .version)" ]]; then
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]] || [[ "$TRAVIS_BRANCH" != master ]]; then
echo "Skipping deploy; just doing a build."
python ./nur/update.py
nix-build
@ -15,17 +13,15 @@ fi
python ./nur/update.py
nix-build
if [ "$TRAVIS_BRANCH" = master ]; then
git config user.name "Travis CI"
git config user.email "$COMMIT_AUTHOR_EMAIL"
if [ -z "$(git diff --exit-code)" ]; then
echo "No changes to the output on this push; exiting."
exit 0
fi
git add --all repos.json*
git config user.name "Travis CI"
git config user.email "$COMMIT_AUTHOR_EMAIL"
git commit -m "automatic update"
git push origin master
if [ -z "$(git diff --exit-code)" ]; then
echo "No changes to the output on this push; exiting."
exit 0
fi
git add --all repos.json*
git commit -m "automatic update"
git push origin master