Fakultas Ilmu Komputer UI

Commit 033d9248 authored by M. Reza Qorib's avatar M. Reza Qorib
Browse files

[#140382397] #3 finally give up on chrome. Hope firefox works

parent 5abc9ccd
...@@ -2,12 +2,7 @@ test: ...@@ -2,12 +2,7 @@ test:
script: script:
- apt-get install -f - apt-get install -f
- apt-get update -qy - apt-get update -qy
- apt-get install -y python-dev python-pip sudo postgresql postgresql-client libpq-dev libxss1 libappindicator1 libindicator7 - apt-get install -y python-dev python-pip sudo postgresql postgresql-client libpq-dev libxss1 libappindicator1 libindicator7 firefox
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
- apt-get update
- apt-get install -y google-chrome-stable
- export CHROME_BIN=/usr/bin/google-chrome
- curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - - curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
- sudo apt-get install -y nodejs - sudo apt-get install -y nodejs
- npm install - npm install
......
...@@ -3,13 +3,13 @@ webpackConfig.devtool = 'inline-source-map'; ...@@ -3,13 +3,13 @@ webpackConfig.devtool = 'inline-source-map';
module.exports = function (config) { module.exports = function (config) {
config.set({ config.set({
browsers: [ 'Chrome' ], //run in Chrome browsers: [ 'Firefox' ], //run in Firefox
singleRun: true, //just run once by default singleRun: true, //just run once by default
frameworks: [ 'mocha' ], //use the mocha test framework frameworks: [ 'mocha' ], //use the mocha test framework
files: [ files: [
'tests.webpack.js' //just load this file 'tests.webpack.js' //just load this file
], ],
plugins: [ 'karma-chrome-launcher', 'karma-mocha', plugins: [ 'karma-firefox-launcher', 'karma-mocha',
'karma-sourcemap-loader', 'karma-webpack', 'karma-coverage' 'karma-sourcemap-loader', 'karma-webpack', 'karma-coverage'
], ],
preprocessors: { preprocessors: {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment