Skip to content

Commit

Permalink
Merge d68b0e7 into 189a975
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenOutman committed May 14, 2018
2 parents 189a975 + d68b0e7 commit 41b16ab
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
32 changes: 26 additions & 6 deletions .travis.yml
@@ -1,6 +1,7 @@
language: node_js
node_js:
- 7.2.1
# - 7 # 7 is not supported by NPM, it will fallback to npm@3, which does not run prepublishOnly hook
- 8 # 8 is a LTS version with latest NPM packed

env:
- BROWSER=ChromeCi
Expand All @@ -10,14 +11,33 @@ cache:
directories:
- node_modules

after_script:
- npm run coveralls
script:
- npm test
- npm run coveralls

before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start

branches:
only:
- master
on:
branch: master
tags: true


jobs:
include:
- stage: "NPM publish"
script: skip
deploy:
provider: npm
email: "leishenghao@126.com"
api_key: $NPM_AUTH_TOKEN
skip_cleanup: true
on:
tags: true

stages:
- test
- name: "NPM publish"
if: tag IS present # only include deploy stage when it's a tagged commit
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -68,6 +68,7 @@
},
"devDependencies": {
"autoprefixer": "^8.3.0",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-eslint": "^8.2.2",
"babel-loader": "^7.1.4",
Expand Down

0 comments on commit 41b16ab

Please sign in to comment.