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

Commit

Permalink
Merge pull request #60 from mykmelez/test-configure
Browse files Browse the repository at this point in the history
test the configure command (fixes #35)
  • Loading branch information
Marco committed Oct 17, 2015
2 parents 20b69bb + b97f0b9 commit 1fe5421
Show file tree
Hide file tree
Showing 4 changed files with 505 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ before_script:
- 'git config --global user.email "myk@mykzilla.org"'
script:
- gulp
- gulp test
- node node_modules/mocha/bin/mocha test
after_success:
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ] && gulp deploy'
14 changes: 14 additions & 0 deletions lib/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,20 @@ var readYaml = require('read-yaml');
var travisEncrypt = promisify(require('travis-encrypt'));
var writeYaml = require('write-yaml');

// Uncomment this to record network requests/responses when writing automated
// tests.
//
// NB: if we ever implement live tests against real GitHub repositories,
// then we should enable this by default when those tests are running to help
// debug the tests.
//
// However, note that we can't use this to debug test runs against the mocks,
// since enabling this feature disables the mocks. To debug such tests, see
// https://github.com/pgte/nock#debugging / https://github.com/pgte/nock#logging.
//
// var nock = require('nock');
// nock.recorder.rec();

var Travis = require('travis-ci');
var travis = new Travis({ version: '2.0.0' });

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"gulp-istanbul": "^0.10.1",
"gulp-mocha": "^2.1.3",
"mocha": "^2.3.3",
"nock": "^2.15.0",
"rewire": "^2.3.4",
"simple-git": "^1.11.0",
"temp": "^0.8.3",
Expand Down

0 comments on commit 1fe5421

Please sign in to comment.