Skip to content

Commit

Permalink
Migrate tests to Ava
Browse files Browse the repository at this point in the history
  • Loading branch information
brunocodutra authored Mar 30, 2018
2 parents 2a52a83 + d4c369d commit 6c30094
Show file tree
Hide file tree
Showing 65 changed files with 38,460 additions and 265 deletions.
12 changes: 12 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"presets": [
["@babel/preset-env", {
"targets": {
"node": "4"
},
"exclude": [
"transform-regenerator"
]
}]
]
}
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ lib-cov

# Coverage directory used by tools like istanbul
coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
Expand Down Expand Up @@ -82,5 +83,3 @@ $RECYCLE.BIN/

### Custom ###
dist/
test/output/
test/stream
6 changes: 6 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"reporter": [
"lcov",
"text"
]
}
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,16 @@ node_js:
os:
- linux
- osx

jobs:
include:
- stage: test
os: linux
node_js: node
script: travis_retry npm run coverage
after_success:
- travis_retry npm install coveralls
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

before_install:
- travis_retry npm install -g npm@latest
13 changes: 1 addition & 12 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,7 @@ var gulp = require('gulp'),

gulp.task('default', () => Promise.all([
gulp.src(['src/index.js', 'src/helpers.js'])
.pipe(babel({
presets: [
['env', {
targets: {
node: "4"
},
exclude: [
'transform-regenerator'
]
}]
]
}))
.pipe(babel())
.pipe(gulp.dest('dist/')),

gulp.src(['src/mask.png', 'src/overlay.png'])
Expand Down
Loading

0 comments on commit 6c30094

Please sign in to comment.