add CI scripts

This commit is contained in:
Matthias Kretschmann 2016-03-19 01:22:18 +01:00
parent 883aa5bd3a
commit ee20e1826e
3 changed files with 27 additions and 0 deletions

7
_ci/build.sh Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e;
gulp build
exit;

11
_ci/deploy.sh Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
# $DEPLOY_SRC = ~/src/github.com/ascribe/wp-theme/ascribe/
set -e;
if [ $CI_BRANCH == "master" ]; then
rsync --recursive --delete --delete-excluded --checksum --verbose -e "ssh" $DEPLOY_SRC $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH
fi;
exit;

9
_ci/setup.sh Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -e;
npm install gulp -g
npm install
bundle install
exit;