Skip to content

Commit 78400da

Browse files
committed
build(travis): enable cron job deploy config
1 parent 7c35fcb commit 78400da

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.travis.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ env:
1717
- NODE_VER=4 FULL_VALIDATE=false
1818
- NODE_VER=6 FULL_VALIDATE=true alias grunt=./node_modules/grunt-cli/bin/grunt
1919
- NODE_VER=7 FULL_VALIDATE=false
20+
- NODE_VER=8 FULL_VALIDATE=false DEPLOY_NIGHTLY=true
21+
2022
matrix:
2123
fast_finish: true
2224

@@ -35,4 +37,12 @@ script:
3537

3638
after_success:
3739
- if [ "$FULL_VALIDATE" == "true" ]; then npm run test:cover && npx nyc report --reporter=text-lcov | npx coveralls; fi
38-
- if [ "$FULL_VALIDATE" == "true" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ -n "$SAUCE_ACCESS_KEY" ]; then npm run build_spec_browser && grunt --gruntfile spec/support/mocha.sauce.gruntfile.js; fi
40+
- if [ "$FULL_VALIDATE" == "true" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ -n "$SAUCE_ACCESS_KEY" ]; then npm run build_spec_browser && grunt --gruntfile spec/support/mocha.sauce.gruntfile.js; fi
41+
42+
deploy:
43+
provider: script
44+
on:
45+
branch: master
46+
skip_cleanup: true
47+
condition: "$TRAVIS_EVENT_TYPE = cron"
48+
condition: "$DEPLOY_NIGHTLY = true"

0 commit comments

Comments
 (0)