mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-18 18:54:52 +00:00
Fix travis tests
This commit is contained in:
parent
c5b1126dc8
commit
ff4401aeac
11
.travis.yml
11
.travis.yml
@ -1,10 +1,18 @@
|
||||
sudo: required
|
||||
dist: trusty
|
||||
language: node_js
|
||||
node_js:
|
||||
- 5.2.0
|
||||
sudo: required
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- google-chrome
|
||||
packages:
|
||||
- google-chrome-stable
|
||||
- google-chrome-beta
|
||||
before_install:
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y libappindicator1 fonts-liberation
|
||||
@ -17,7 +25,6 @@ before_script:
|
||||
- export CHROME_BIN=/usr/bin/google-chrome
|
||||
- "export DISPLAY=:99.0"
|
||||
- "sh -e /etc/init.d/xvfb start"
|
||||
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
|
||||
- sleep 5 # give xvfb some time to start
|
||||
- gulp bundle
|
||||
- npm start &
|
||||
|
@ -49,7 +49,12 @@ module.exports = function(config) {
|
||||
// start these browsers
|
||||
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
||||
browsers: ['Chrome'],
|
||||
|
||||
customLaunchers: {
|
||||
Chrome_without_sandbox: {
|
||||
base: 'Chrome',
|
||||
flags: ['--no-sandbox'] // with sandbox it fails under Docker
|
||||
}
|
||||
},
|
||||
// Continuous Integration mode
|
||||
// if true, Karma captures browsers, runs the tests and exits
|
||||
singleRun: false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user