update to circle 2.0
This commit is contained in:
parent
008148aeee
commit
d30a0ffad9
32
.circleci/config.yml
Normal file
32
.circleci/config.yml
Normal 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
|
22
circle.yml
22
circle.yml
|
@ -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
|
|
Reference in a new issue