Skip to content

Commit

Permalink
travis build stages (#1113)
Browse files Browse the repository at this point in the history
* add travis build stages

* add emoji
  • Loading branch information
UziTech authored and styfle committed Mar 4, 2018
1 parent 61505c3 commit 5768180
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
25 changes: 13 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
language: node_js
node_js:
- "0.10"
- "4"
- "lts/*"
- "node"
script: |
if [ `node --version | cut -d . -f 1,2` = "v0.10" ]; then
sed -i s/0o755/0755/ test/index.js;
npm test;
else
npm run test:lint && npm test;
fi

jobs:
include:
- stage: spec tests 👩🏽‍💻
node_js: v0.10
- node_js: v4
- node_js: lts/*
- node_js: node

- stage: lint ✨
node_js: lts/*
script: npm run test:lint

cache:
directories:
- node_modules
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ function time(options) {
function fix() {
['compiled_tests', 'original', 'new'].forEach(function(dir) {
try {
fs.mkdirSync(path.resolve(__dirname, dir), 0o755);
fs.mkdirSync(path.resolve(__dirname, dir));
} catch (e) {
;
}
Expand Down

0 comments on commit 5768180

Please sign in to comment.