Skip to content
This repository has been archived by the owner on May 15, 2021. It is now read-only.

Commit

Permalink
ci: enable ci specific chrome settings
Browse files Browse the repository at this point in the history
  • Loading branch information
nickshine committed Apr 19, 2019
1 parent 54909a9 commit 0c86c22
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- dependency-cache-{{ checksum "package.json" }}
- dependency-cache-
- run: npm install
- run: npm run build
- run: npm run build -- --ci=$CI
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
Expand Down
35 changes: 20 additions & 15 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,25 @@ module.exports = grunt => {

if (!Array.isArray(root)) root = [root];

const isCI = grunt.option('ci') || false;

const qunit = {
files: [ 'test/*.html' ],
};

if (isCI) {
qunit.options = {
puppeteer: {
headless: true,
executablePath: '/usr/bin/google-chrome',
args: [
'--no-snadbox',
'--disable-setuid-sandbox',
]
}
};
}

// Project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
Expand All @@ -22,21 +41,7 @@ module.exports = grunt => {
' * Copyright (C) 2019 Hakim El Hattab, http://hakim.se\n' +
' */'
},

qunit: {
files: [ 'test/*.html' ],
options: {
puppeteer: {
headless: true,
executablePath: '/usr/bin/google-chrome',
args: [
'--no-snadbox',
'--disable-setuid-sandbox',
]
}
}
},

qunit,
uglify: {
options: {
banner: '<%= meta.banner %>\n',
Expand Down

0 comments on commit 0c86c22

Please sign in to comment.