Skip to content

Commit

Permalink
Update travis files
Browse files Browse the repository at this point in the history
  • Loading branch information
Matshishkapeu committed Apr 29, 2020
1 parent 3b33666 commit 8f495b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ dist: xenial

sudo: false

# safelist (buil & deploy only for tagged version)
branches:
only:
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/

language: python

install:
Expand All @@ -11,7 +16,6 @@ env:
global:
- ECOGEN_ENV=production
- GIT_DEPLOY_REPO=https://[email protected]/code-mphi/ECOGEN.git
- SOURCE_BRANCH="devel"
- TARGET_BRANCH="gh-pages"

addons:
Expand Down
4 changes: 2 additions & 2 deletions scripts/travis/buildAndDeploy.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
set -e # Exit with nonzero exit code if anything fails

# deploy only under travis request for devel branch
if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "$SOURCE_BRANCH" ]; then
# deploy only under travis request
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo "Skipping deploy."
exit 0
fi
Expand Down

0 comments on commit 8f495b6

Please sign in to comment.