forked from leipert/vsb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker.yml
40 lines (39 loc) · 1.05 KB
/
wercker.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
38
39
40
box: leipert/webapp-test
# Build definition
build:
# The steps that will be executed on build
steps:
# A step that executes `npm install` command
- npm-install
# - plasticine/bower-install
- script:
name: Bower
code: >-
export BOWER_STORAGE__CACHE="${WERCKER_CACHE_DIR}/wercker/bower" &&
mkdir -p $BOWER_STORAGE__CACHE &&
bower --allow-root install
- script:
name: Test and build vsb
code: gulp
- script:
name: Delete unneeded files
code: ls -A | grep -v dist | grep -v landing | grep -v config | xargs rm -rf
deploy:
steps:
- script:
name: Run afterbuild scripts
code: bash config/afterBuild.sh
- leipert/git-push:
gh_oauth: $GH_TOKEN
gh_pages: true
basedir: landing
clean_removed_files: true
debug: true
- leipert/git-push:
gh_oauth: $GH_TOKEN
branch: dist
basedir: dist
tag: bower
tag_overwrite: true
clean_removed_files: true
debug: true