-
Notifications
You must be signed in to change notification settings - Fork 16
/
shippable.yml
37 lines (33 loc) · 1019 Bytes
/
shippable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: node_js
node_js:
- "6"
build:
ci:
- npm prune
- shippable_retry npm install --unsafe-perm
- shippable_retry npm update --unsafe-perm
- npm test
post_ci:
- >-
if [ "$IS_RELEASE" == "true" ] && [ "$IS_FORK" == "false" ]; then
npm run clean &&
BASE_PATH=/elm-app-boilerplate npm run build &&
git clone . /tmp/demo &&
cd /tmp/demo &&
git remote set-url origin [email protected]:${REPO_FULL_NAME}.git &&
git config user.email "[email protected]" &&
git config user.name "gkubisa-ci" &&
git fetch &&
git checkout gh-pages &&
rm -r * &&
cp -r ${SHIPPABLE_BUILD_DIR}/dist/* . &&
mv index.html 404.html &&
git add -A . &&
git commit -m "Update demo for ${GIT_TAG_NAME} [skip ci]" &&
shippable_retry git push origin gh-pages;
fi
cache: true
cache_dir_list:
- $SHIPPABLE_BUILD_DIR/node_modules
- $SHIPPABLE_BUILD_DIR/elm-stuff
- $SHIPPABLE_BUILD_DIR/.git