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

Update Travis CI set-up #113

Merged
merged 1 commit into from
Aug 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
language: node_js
node_js:
- 9.10.1
- "lts/*"
- "node"

addons:
chrome: stable

# Tests run in chromium
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- npm install -g grunt-cli

install: npm install
Expand Down
16 changes: 8 additions & 8 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ module.exports = function(grunt) {
'test/jose-jws-rsa-test.html'
],
autoWatch: true,
browsers: ['Chrome'],
browsers: ['Chrome', 'ChromeHeadless', 'ChromeHeadlessNoSandbox'],
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
Expand All @@ -66,10 +66,10 @@ module.exports = function(grunt) {
'test/jose-jws-rsa-test.html'
],
autoWatch: true,
browsers: ['Chrome'],
browsers: ['Chrome', 'ChromeHeadless', 'ChromeHeadlessNoSandbox'],
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
Expand All @@ -89,8 +89,8 @@ module.exports = function(grunt) {
};

if (process.env.TRAVIS) {
config.karma.with_coverage.browsers = ['Chrome_travis_ci'];
config.karma.without_coverage.browsers = ['Chrome_travis_ci'];
config.karma.with_coverage.browsers = ['ChromeHeadlessNoSandbox'];
config.karma.without_coverage.browsers = ['ChromeHeadlessNoSandbox'];
}

grunt.initConfig(config);
Expand Down