mirror of
https://github.com/ascribe/wp-theme
synced 2024-12-22 09:13:38 +01:00
add CI scripts
This commit is contained in:
parent
883aa5bd3a
commit
ee20e1826e
7
_ci/build.sh
Executable file
7
_ci/build.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e;
|
||||||
|
|
||||||
|
gulp build
|
||||||
|
|
||||||
|
exit;
|
11
_ci/deploy.sh
Executable file
11
_ci/deploy.sh
Executable 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
9
_ci/setup.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e;
|
||||||
|
|
||||||
|
npm install gulp -g
|
||||||
|
npm install
|
||||||
|
bundle install
|
||||||
|
|
||||||
|
exit;
|
Loading…
Reference in New Issue
Block a user