Skip to content

Commit

Permalink
adds node 6 to CI matrix; closes #2239 (#2251)
Browse files Browse the repository at this point in the history
* update travis matrix for node 6; use trusty image

* add test to trigger use of glob.sync()
  • Loading branch information
boneskull committed May 13, 2016
1 parent 488fd6f commit 3904da4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 13 deletions.
38 changes: 25 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,33 @@
# in order to use 'trusty' dist, need this.
# see https://docs.travis-ci.com/user/trusty-ci-environment/
sudo: required

# trust dist provides a modern build chain (as opposed to 'precise' dist)
# which absolves us from having to install compilers and stuff
dist: trusty

language: node_js
env:
global:
- CXX=g++-4.8

node_js:
- '6'
- '5'
- '4'
- 'iojs'
- '0.12'
- '0.11'
- '0.10'
- '0.8'

before_install:
- ./scripts/ensure-compatible-npm.sh
# node 0.8 won't install our dev deps with an out-of-box npm;
# this upgrades it
- ./scripts/ensure-compatible-npm.sh

script: travis_retry npm test
node_js:
- '5'
- '4'
- 'iojs'
- '0.12'
- '0.11'
- '0.10'
- '0.8'
sudo: false

notifications:
urls:
# for gitter
- secure: "EmycFlk48bUvOQ07mxnbcn6T+n3G4wVWuXgrDsUUp6EhJ9866wQK9i+qVhqogWuSEQrGoVaS/vpc/NEYxDP30BD/+nqgvOhVhLVEgtziI85imyV/oUVpArdW3AUmuzCrx7rQCivygjpBmWV9ZcUT5Km4qp1iQhuumy2WbplxrZ4="
on_success: change
on_failure: always
11 changes: 11 additions & 0 deletions test/acceptance/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,17 @@ describe('lib/utils', function () {
utils.lookupFiles('/tmp', ['js'], false).should.eql([]);
});

it('should accept a glob "path" value', function () {
utils.lookupFiles('/tmp/mocha-utils*', ['js'], false)
.should
.containEql('/tmp/mocha-utils-link.js')
.and
.containEql('/tmp/mocha-utils.js')
.and
.have
.lengthOf(2);
});

afterEach(function () {
['/tmp/mocha-utils.js', '/tmp/mocha-utils-link.js', '/tmp/bob'].forEach(function (path) {
try {
Expand Down

0 comments on commit 3904da4

Please sign in to comment.