2017-10-14 00:07:12 +02:00
|
|
|
#! /bin/bash
|
2017-10-14 00:11:40 +02:00
|
|
|
echo "Pull Request: $TRAVIS_PULL_REQUEST"
|
|
|
|
echo "Branch: $TRAVIS_BRANCH"
|
2017-10-14 00:17:12 +02:00
|
|
|
|
2017-10-14 00:07:12 +02:00
|
|
|
if [[ $TRAVIS_PULL_REQUEST == "false" ]]; then
|
|
|
|
if [[ $TRAVIS_BRANCH == "master" ]]; then
|
|
|
|
bundle exec nanoc --env=prod deploy public
|
|
|
|
fi
|
|
|
|
else
|
2018-07-09 22:16:15 +02:00
|
|
|
rsync -e 'ssh -p 2222' -aglpPrtvz --delete output/ "zeuspr@herbert.ugent.be:/home/zeuspr/public/$TRAVIS_PULL_REQUEST/"
|
2017-10-14 00:07:12 +02:00
|
|
|
fi
|