Skip to content
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.

Commit

Permalink
testing travis
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Mar 16, 2017
1 parent 3131007 commit d1f8881
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ language: node_js
node_js:
- "node"
cache: yarn
before_script: "node guard.js"
script: "yarn test -- --coverage && yarn lint"
after_script: "yarn coveralls"
after_success:
Expand Down
2 changes: 2 additions & 0 deletions guard.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const semverTruncate = require('semver-truncate')

const semverRange = '<=2'

console.log('TRAVIS_PULL_REQUEST_BRANCH', process.env.TRAVIS_PULL_REQUEST_BRANCH)

if (!semver.satisfies(semverTruncate(data.version, 'patch'), semverRange)) {
const err = new Error(`uikit ${data.version} doesn't satisfy the version requirement of ${semverRange}`)
err.name = 'InvalidUikitVersion'
Expand Down

0 comments on commit d1f8881

Please sign in to comment.