File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ dist: xenial
2
2
3
3
sudo : false
4
4
5
+ # safelist (buil & deploy only for tagged version)
6
+ branches :
7
+ only :
8
+ - /^v\d+\.\d+(\.\d+)?(-\S*)?$/
9
+
5
10
language : python
6
11
7
12
install :
11
16
global :
12
17
- ECOGEN_ENV=production
13
18
-
GIT_DEPLOY_REPO=https://[email protected] /code-mphi/ECOGEN.git
14
- - SOURCE_BRANCH="devel"
15
19
- TARGET_BRANCH="gh-pages"
16
20
17
21
addons :
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e # Exit with nonzero exit code if anything fails
3
3
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
6
6
echo " Skipping deploy."
7
7
exit 0
8
8
fi
You can’t perform that action at this time.
0 commit comments