2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-05 16:42:32 +03:00

Updating configuration to use Firefox for testing PRs

This commit is contained in:
Nick Uraltsev
2016-03-22 23:46:36 -07:00
parent 4f61a78436
commit c622b35f38
2 changed files with 9 additions and 2 deletions
+4
View File
@@ -2,6 +2,10 @@ language: node_js
email:
on_failure: change
on_success: never
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
after_success:
- npm run coveralls
env:
+5 -2
View File
@@ -97,8 +97,11 @@ module.exports = function(config) {
browsers = Object.keys(customLaunchers);
} else if (process.env.TRAVIS_PULL_REQUEST && process.env.TRAVIS_PULL_REQUEST !== 'false') {
console.log('Cannot run on Sauce Labs as encrypted environment variables are not available to PRs. Using PhantomJS.');
browsers = ['PhantomJS'];
console.log(
'Cannot run on Sauce Labs as encrypted environment variables are not available to PRs. ' +
'Running on Travis.'
);
browsers = ['Firefox'];
} else {
console.log('Running locally since SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables are not set.');
browsers = ['Firefox', 'Chrome', 'Safari', 'Opera'];