2017-07-11 12:53:20 +08:00
|
|
|
sudo: false
|
2017-07-11 12:34:50 +08:00
|
|
|
env:
|
|
|
|
- CXX=g++-4.8
|
2017-07-11 12:53:20 +08:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
|
|
|
- "4"
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-4.8
|
|
|
|
- g++-4.8
|
2017-07-11 11:31:29 +08:00
|
|
|
script:
|
|
|
|
- npm run test
|
2017-07-13 08:20:14 +08:00
|
|
|
- npm run example:webapp:install
|
2017-07-13 07:44:01 +08:00
|
|
|
- npm run example:webapp:build
|
2017-07-11 11:31:29 +08:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
cache:
|
|
|
|
directories:
|
2017-07-13 07:44:01 +08:00
|
|
|
- node_modules
|
2017-07-13 08:20:14 +08:00
|
|
|
- example/webapp/node_modules
|
2017-07-13 07:44:01 +08:00
|
|
|
deploy:
|
|
|
|
provider: pages
|
|
|
|
skip_cleanup: true
|
|
|
|
github_token: $GITHUB_TOKEN
|
|
|
|
local_dir: example/webapp/build
|
|
|
|
on:
|
|
|
|
branch: master
|