Skip to content

Commit 8f495b6

Browse files
committed
Update travis files
1 parent 3b33666 commit 8f495b6

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Diff for: .travis.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ dist: xenial
22

33
sudo: false
44

5+
# safelist (buil & deploy only for tagged version)
6+
branches:
7+
only:
8+
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
9+
510
language: python
611

712
install:
@@ -11,7 +16,6 @@ env:
1116
global:
1217
- ECOGEN_ENV=production
1318
- GIT_DEPLOY_REPO=https://[email protected]/code-mphi/ECOGEN.git
14-
- SOURCE_BRANCH="devel"
1519
- TARGET_BRANCH="gh-pages"
1620

1721
addons:

Diff for: scripts/travis/buildAndDeploy.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22
set -e # Exit with nonzero exit code if anything fails
33

4-
# deploy only under travis request for devel branch
5-
if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "$SOURCE_BRANCH" ]; then
4+
# deploy only under travis request
5+
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
66
echo "Skipping deploy."
77
exit 0
88
fi

0 commit comments

Comments
 (0)