Skip to content

Commit

Permalink
ci: add Travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmattmatt committed Dec 2, 2018
1 parent bb238a3 commit 190ce56
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: node_js
node_js:
- 8

notifications:
email: false

cache:
directories:
- "node_modules"

jobs:
include:
- stage: branch test
script: npm test && npm run build
- stage: npm publish
script: npm test && npm run build
after_success: npm run semantic-release

stages:
- name: branch test
if: branch != master
- name: npm publish
if: branch = master

0 comments on commit 190ce56

Please sign in to comment.