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:
@@ -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
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user