commit 655648db7f6b67551a7395b2e938e173d89e950b
parent ebf429472f73e46cda48659b63db473b581c7273
Author: Georges Dupéron <georges.duperon@gmail.com>
Date: Mon, 20 Mar 2017 18:10:14 +0100
Fixed auto-deploy script
Diffstat:
2 files changed, 3 insertions(+), 13 deletions(-)
diff --git a/.travis.yml b/.travis.yml
@@ -7,16 +7,6 @@ env:
- secure: kPOwvkCDLpwJneCPeKUxbEZSsPWPpOpIK2wKf5Fm2BqJlUm+Wm8g5GZy1WHjo/IdNyb5mDIJzxWcr/uYDykehkNR1tRVrzUfRCVWqOFXGeI5P9e0zBaXp/GW3kfKivWNhpec8WSu9ZPjQhsRfDCjKRCHAB3JzwDWF8Kfl9UeBicFXQVRo+9zo3okRLsuJsEP/0MEtN0GxdsfKDleSW28AZLxu7raoJHHFY1t3QxMoYDd5312Pz7smv1/l4RG/P6XZZrtWEeVwctrNbU0CBO8tX8nqUCHA0bWyOW+crf4/NZZGg9e1RUq8eDbVUd7iGq81nr0+F7IvvwbvSLmpU2/b9hbcF4i4MpIE1Yy/0+zUhuTj1Yy8tw/irc8Y6Nc/g25BJBSCrfdPQnnbAESUv2ywbHC8vBztLca1xBQbQ+q0N0YYUK/mgxUiOznwTQ3PRIs/SENSdhFufT9pCRBp+lvkY+DVHSt6ogPYdRmyF/KPdcDWu5GqKrUs4KyroAzMLX/brw9+TjASnjTipnUWSlTQpoXjf1aQQuescqZMAbxEZH5ed6YvyPehdDqB8bpkeZ9OUkP8pV1kndSnnUsDH7Kn7ZyYUI20FNsU8Yqp1v94jOfrz2np2N9mJUT3teDy8k4yIxTERYSfbBcn4X30YX8fwRk/8skHRtgU4VOpUnIjkw=
script:
- sh travis-auto-deploy.sh
-- npm install grunt grunt-cli grunt-contrib-clean grunt-regex-replace
-- PATH="$PWD/node_modules/grunt-cli/bin:$PATH" grunt racket-mini
-- git config --global user.name "Travis CI"
-- git config --global user.email "travis@nobody.com"
-- git add -A . &> /dev/null
-- git rm -f .gitignore || true
-- git rm -f Gruntfile.js || true
-- git commit -m "auto-commit" &>/dev/null
-- git log --oneline --decorate --graph -10
-- git push --force --quiet "https://${GH_TOKEN}@github.com/jsmaniac/scribble-mathjax.git" HEAD:refs/heads/v2.6-racket-mini
branches:
only:
- v2.6-racket-mini-source
diff --git a/travis-auto-deploy.sh b/travis-auto-deploy.sh
@@ -1,11 +1,11 @@
#!/bin/sh
set -e
set -x
-if test "$(git config remote.origin.url)" != "https://github.com/jsmaniac/phc-thesis.git"
+if test "$(git config remote.origin.url)" != "https://github.com/jsmaniac/scribble-mathjax.git"
echo "Not on official repo, will not deploy gh-pages."
elif test "$TRAVIS_PULL_REQUEST" != "false"; then
echo "This is a Pull Request, will not deploy gh-pages."
-elif test "$TRAVIS_BRANCH" = "master"; then
+elif test "$TRAVIS_BRANCH" = "v2.6-racket-mini-source"; then
echo "Not on master branch, will not deploy gh-pages."
elif test -z "${encrypted_1b66487e02e5_key:-}" -o -z "${encrypted_1b66487e02e5_iv:-}"; then
echo "Travis CI secure environment variables are unavailable, will not deploy gh-pages."
@@ -34,5 +34,5 @@ else
git rm -f Gruntfile.js || true
git commit -m "auto-commit" &>/dev/null
git log --oneline --decorate --graph -10
- git push --force --quiet "https://git@github.com/jsmaniac/scribble-mathjax.git" HEAD:refs/heads/v2.6-racket-mini > /dev/null 2>&1
+ git push --force --quiet "git@github.com:jsmaniac/scribble-mathjax.git" HEAD:refs/heads/v2.6-racket-mini > /dev/null 2>&1
fi
\ No newline at end of file