Skip to content

Commit

Permalink
Migrates to ChromeHeadless (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatvilesov committed Jun 29, 2018
1 parent 45e4408 commit 281a20f
Show file tree
Hide file tree
Showing 8 changed files with 5,539 additions and 688 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
node_modules
*.log
/coverage
lib
9 changes: 2 additions & 7 deletions .travis.yml
Expand Up @@ -4,12 +4,7 @@ sudo: required
dist: trusty
language: node_js
node_js:
- "7"
before_install:
- sudo apt-get install -y chromium-browser
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- "10"
install:
- npm install
script:
Expand All @@ -18,4 +13,4 @@ script:
after_success:
- node node_modules/coveralls/bin/coveralls.js < coverage/lcov.info
notifications:
email: false
email: false
31 changes: 10 additions & 21 deletions karma.conf.js
Expand Up @@ -26,28 +26,16 @@

'use strict';

const testRecursivePath = 'test/**/*.ts'
, srcOriginalRecursivePath = 'src/**/*.ts'
, srcRecursivePath = 'lib/**/*.js'
, coverageFolder = 'coverage';
const testRecursivePath = 'test/**/*.ts';
const srcOriginalRecursivePath = 'src/**/*.ts';
const srcRecursivePath = 'lib/**/*.js';
const coverageFolder = 'coverage';

module.exports = (config) => {
let browsers = [];

if (process.env.TRAVIS) {
browsers.push('ChromeTravisCI');
} else {
browsers.push('Chrome');
}
process.env.CHROME_BIN = require('puppeteer').executablePath();

module.exports = (config) => {
config.set({
customLaunchers: {
ChromeTravisCI: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
browsers: browsers,
browsers: ['ChromeHeadless'],
colors: true,
frameworks: ['jasmine'],
reporters: [
Expand Down Expand Up @@ -93,13 +81,14 @@ module.exports = (config) => {
dir: coverageFolder,
reporters: [
{ type: 'html' },
{ type: 'lcov' }
{ type: 'lcov' },
]
},
remapIstanbulReporter: {
reports: {
lcovonly: coverageFolder + '/lcov.info',
html: coverageFolder
html: coverageFolder,
'text-summary': null
}
}
});
Expand Down
89 changes: 0 additions & 89 deletions lib/index.d.ts

This file was deleted.

0 comments on commit 281a20f

Please sign in to comment.