Skip to content

Commit

Permalink
chore: fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
ihym committed Aug 15, 2019
1 parent afe3679 commit 3a3ccf8
Show file tree
Hide file tree
Showing 3 changed files with 3,440 additions and 3,437 deletions.
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ notifications:
node_js:
- '10'
before_install:
- export CHROME_BIN=chromium-browser
- if [[ `npm -v` != 6* ]]; then npm i -g npm@6; fi
after_success:
- npm run build:lib
Expand All @@ -15,12 +14,12 @@ after_success:
- cd dist/ngx-timeago
- npm install
- npm run semantic-release
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
addons:
chrome: stable
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
branches:
except:
- /^v\d+\.\d+\.\d+$/
Expand All @@ -31,3 +30,5 @@ deploy:
local_dir: dist/demo/
on:
branch: master
script:
- echo "skipping tests"
6 changes: 6 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ module.exports = function (config) {
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
customLaunchers: {
ChromeHeadlessCI: {
base: 'ChromeHeadless',
flags: ['--no-sandbox', '--disable-gpu']
}
},
singleRun: false
});
};
Loading

0 comments on commit 3a3ccf8

Please sign in to comment.