Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fasilkom UI Open Source Software
Kape
Commits
0064c224
Commit
0064c224
authored
Mar 14, 2017
by
M. Reza Qorib
Browse files
[#140382397] #3 Try chrome again with exporting display env
parent
033d9248
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
0064c224
test
:
script
:
-
uname -r
-
apt-get install -f
-
apt-get update -qy
-
apt-get install -y python-dev python-pip sudo postgresql postgresql-client libpq-dev libxss1 libappindicator1 libindicator7 firefox
-
apt-get update -fqy
-
apt-get install -y python-dev python-pip sudo postgresql postgresql-client libpq-dev libxss1 libappindicator1 libindicator7
-
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
-
export DISPLAY=:99.0
-
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
-
sudo apt-get install -y nodejs
-
npm install
...
...
karma.conf.js
View file @
0064c224
...
...
@@ -3,13 +3,13 @@ webpackConfig.devtool = 'inline-source-map';
module
.
exports
=
function
(
config
)
{
config
.
set
({
browsers
:
[
'
Firefox
'
],
//run in Firefox
browsers
:
[
'
Chrome
'
],
//run in Firefox
singleRun
:
true
,
//just run once by default
frameworks
:
[
'
mocha
'
],
//use the mocha test framework
files
:
[
'
tests.webpack.js
'
//just load this file
],
plugins
:
[
'
karma-
firefox
-launcher
'
,
'
karma-mocha
'
,
plugins
:
[
'
karma-
chrome
-launcher
'
,
'
karma-mocha
'
,
'
karma-sourcemap-loader
'
,
'
karma-webpack
'
,
'
karma-coverage
'
],
preprocessors
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment