forked from google/ioweb2015
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.drone.yml
More file actions
25 lines (24 loc) · 758 Bytes
/
Copy path.drone.yml
File metadata and controls
25 lines (24 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
image: crhym3/ci
git:
depth: 1
script:
# workaround for cache, see https://github.com/drone/drone/issues/147
- mkdir -p /cache/npm /cache/bower /cache/node_modules
- npm config set cache /cache/npm
- rm -rf app/bower_components && ln -s /cache/bower app/bower_components
- rm -rf node_modules experiment/node_modules
- ln -s /cache/node_modules node_modules
- ln -s /cache/node_modules experiment/node_modules
# install dependencies
- npm -q install
- cd app && ../node_modules/bower/bin/bower install -q --allow-root && cd ..
- gulp godeps
# ensure the build works
- gulp
# backend testing
- gulp backend:test
- gulp backend:test --gae
# deploy to appspot if this is master branch
- util/auto-deploy
cache:
- /cache