2017-07-23 20:42:45 +00:00
|
|
|
box: node:8-alpine
|
|
|
|
build:
|
|
|
|
steps:
|
|
|
|
- script:
|
2017-07-23 20:51:15 +00:00
|
|
|
name: install dependencies
|
2017-07-23 20:42:45 +00:00
|
|
|
code: |
|
2017-07-23 20:51:15 +00:00
|
|
|
apk update
|
|
|
|
apk add bash build-base curl git openssh yarn
|
2017-07-23 20:42:45 +00:00
|
|
|
- script:
|
|
|
|
name: yarn install
|
|
|
|
code: |
|
|
|
|
yarn config set cache-folder "$WERCKER_CACHE_DIR/yarn"
|
|
|
|
yarn install
|
|
|
|
- script:
|
|
|
|
name: build
|
|
|
|
code: yarn run build
|
|
|
|
- npm-test
|
|
|
|
deploy:
|
|
|
|
steps:
|
|
|
|
- script:
|
|
|
|
name: package
|
|
|
|
code: |
|
|
|
|
tar -czf wiki-js.tar.gz * -X .build/.deployexclude
|
|
|
|
yarn install --production --ignore-scripts --prefer-offline
|
|
|
|
tar -czf node_modules.tar.gz node_modules
|