update to circle 2.0

This commit is contained in:
MaysWind 2018-07-08 23:22:06 +08:00
parent 008148aeee
commit d30a0ffad9
2 changed files with 32 additions and 22 deletions

32
.circleci/config.yml Normal file
View file

@ -0,0 +1,32 @@
version: 2
defaults: &defaults
docker:
- image: circleci/node:6.14-browsers
jobs:
build:
<<: *defaults
steps:
- checkout
- run: npm install
- run: npm install -g bower
- run: npm install -g gulp
- run: bower install
- run: gulp clean build
publish_daily_build:
<<: *defaults
steps:
- run: bash ./scripts/publish_dailybuild.sh
workflows:
version: 2
build_and_publish:
jobs:
- build
- publish_daily_build:
requires:
- build
filters:
branches:
only: master

View file

@ -1,22 +0,0 @@
machine:
node:
version: 6
dependencies:
override:
- npm install
- npm install -g bower
- npm install -g gulp
- bower install
- gulp clean build
deployment:
daily_build:
branch: master
commands:
- bash ./scripts/publish_dailybuild.sh
general:
branches:
ignore:
- gh-pages