File tree 2 files changed +32
-12
lines changed 2 files changed +32
-12
lines changed Original file line number Diff line number Diff line change 1
- udo : required
1
+ sudo : required
2
2
dist : trusty
3
3
language : node_js
4
4
cache :
5
5
directories :
6
- - $HOME/.npm
7
6
- $HOME/.yarn-cache
8
- - node_modules
9
7
node_js :
10
8
- ' 6.7.0'
11
9
12
10
before_install :
13
- - npm install -g yarn@">=0.16.0" --cache-min 999999999
11
+ - export CHROME_BIN=chromium-browser
12
+ - export DISPLAY=:99.0
13
+ - sh -e /etc/init.d/xvfb start
14
+ # Repo for yarn
15
+ - sudo apt-key adv --keyserver pgp.mit.edu --recv D101F7899D41F3C3
16
+ - echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
17
+ - sudo apt-get update -qq
18
+ - sudo apt-get install -y -qq yarn
14
19
install :
15
20
- yarn install
16
21
17
- script : yarn run sass && node_modules/karma/bin/karma start --browsers PhantomJS
22
+ script :
23
+ - yarn test
18
24
19
25
before_deploy :
20
26
# Parse branch name and determine an environment to deploy
Original file line number Diff line number Diff line change 1
1
module . exports = function ( config ) {
2
- var testWebpackConfig = require ( './webpack.test.js' ) ;
3
- config . set ( {
2
+ const testWebpackConfig = require ( './webpack.test.js' ) ;
3
+ const configuration = {
4
4
basePath : '' ,
5
5
frameworks : [ 'jasmine' ] ,
6
6
exclude : [ ] ,
7
7
files : [
8
- { pattern : './config/spec-bundle.js' , watched : false }
8
+ { pattern : './config/spec-bundle.js' , watched : false } ,
9
9
] ,
10
10
preprocessors : {
11
- './config/spec-bundle.js' : [ 'webpack' , 'sourcemap' ]
11
+ './config/spec-bundle.js' : [ 'webpack' , 'sourcemap' ] ,
12
12
} ,
13
13
webpack : testWebpackConfig ,
14
14
webpackServer : {
15
- noInfo : true
15
+ noInfo : true ,
16
16
} ,
17
17
reporters : [ 'mocha' ] ,
18
18
port : 9876 ,
19
19
colors : true ,
20
20
logLevel : config . LOG_INFO ,
21
21
autoWatch : true ,
22
22
browsers : [ 'Chrome' ] ,
23
- singleRun : true
24
- } ) ;
23
+ customLaunchers : {
24
+ ChromeTravisCi : {
25
+ base : 'Chrome' ,
26
+ flags : [ '--no-sandbox' ] ,
27
+ } ,
28
+ } ,
29
+ singleRun : true ,
30
+ } ;
31
+
32
+ if ( process . env . TRAVIS ) {
33
+ configuration . browsers = [
34
+ 'ChromeTravisCi'
35
+ ] ;
36
+ }
37
+
38
+ config . set ( configuration ) ;
25
39
} ;
You can’t perform that action at this time.
0 commit comments