Skip to content

Commit

Permalink
fix release check of .travis.yml and .binstar.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
philopon committed Jan 29, 2016
1 parent 7dddb88 commit a7f84e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .binstar.yml
Expand Up @@ -10,7 +10,8 @@ engine:
- python=3.5

script:
- if [[ `git rev-parse --abbrev-ref HEAD` != release ]]; then
- if [[ "$GIT_BRANCH" != release ]]; then
echo "beta version";
sed -i -e 's/$/b0/' mordred/version.txt;
echo $BINSTAR_BUILD_MAJOR > __conda_buildnum__.txt;
fi
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -21,7 +21,7 @@ before_install:
- git config --global user.email "philopon.dependence@gmail.com"
- git config --global user.name "philopon"

- if [[ `git rev-parse --abbrev-ref HEAD` != release ]]; then
- if [[ "$TRAVIS_BRANCH" != release ]]; then
sed -i -e 's/$/b0/' mordred/version.txt;
fi

Expand Down Expand Up @@ -58,7 +58,7 @@ after_success:
make html;

git clone -b gh-pages $DOC_REMOTE gh-pages;
rm -r gh-pages/$TRAVIS_BRANCH;
rm -r gh-pages/$TRAVIS_BRANCH || true;
cp -r _build/html gh-pages/$TRAVIS_BRANCH;

cd gh-pages;
Expand Down

0 comments on commit a7f84e6

Please sign in to comment.