Use Chromium-browser for rendering front-end tests

This commit is contained in:
Aurélien Georget 2016-12-05 17:49:07 +01:00
parent 8d0fa7a5d5
commit 7a5c4f0084
2 changed files with 7 additions and 2 deletions

View File

@ -5,6 +5,11 @@ git:
language: node_js
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- cd packages/strapi-mongoose
- npm link

View File

@ -7,7 +7,7 @@ module.exports = (config) => {
frameworks: ['mocha'],
reporters: ['coverage', 'mocha'],
browsers: process.env.TRAVIS // eslint-disable-line no-nested-ternary
? ['ChromeTravis']
? ['Chrome_travis_ci']
: process.env.APPVEYOR
? ['IE'] : ['Chrome'],
@ -42,7 +42,7 @@ module.exports = (config) => {
},
customLaunchers: {
ChromeTravis: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox'],
},