Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
blugavere committed Apr 15, 2017
1 parent eb34c86 commit 86490bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ services:
environment:
- NODE_ENV=docker
- CI=true
- TRAVIS_REPO_SLUG=${TRAVIS_REPO_SLUG}
- TRAVIS=${TRAVIS}
cassandra:
image: cassandra:latest
environment:
Expand Down
9 changes: 6 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ gulp.task('pre-test', () => gulp.src([

gulp.task('test', ['pre-test'], cb => {
let mochaErr;
const delay = 40000;
console.log(`Waiting ${delay/1000} seconds for Cassandra to start...`);
let delay = 0;
if (process.env.NODE_ENV === 'docker') {
delay = 40000;
}
console.log(`Waiting ${delay / 1000} seconds for Cassandra to start...`);
setTimeout(() => {
gulp.src([
'lib/**/*.test.js',
Expand Down Expand Up @@ -67,7 +70,7 @@ gulp.task('coveralls', ['test'], () => {
if (!process.env.CI) {
return;
}

console.log(process.env);
return gulp.src(path.join(__dirname, 'coverage/lcov.info'))
.pipe(coveralls());
});
Expand Down

0 comments on commit 86490bb

Please sign in to comment.