Name tests like the pull request

This commit is contained in:
Tim Schaub
2017-08-16 16:29:52 -04:00
parent ea5484d676
commit 1cad1ffab6
2 changed files with 10 additions and 6 deletions

View File

@@ -5,8 +5,6 @@ node_js:
cache: cache:
directories: directories:
- node_modules - node_modules
env:
- DISPLAY=:99.0
before_script: before_script:
- rm src/ol/renderer/webgl/*shader.js - rm src/ol/renderer/webgl/*shader.js
script: make ci script: make ci

View File

@@ -1,5 +1,7 @@
var path = require('path'); /* eslint-env node, es6 */
var pkg = require('../package.json');
const path = require('path');
const pkg = require('../package.json');
/** /**
* The config below is not enough to run Karma. In addition, we need to add * The config below is not enough to run Karma. In addition, we need to add
@@ -48,9 +50,13 @@ module.exports = function(karma) {
}); });
if (process.env.TRAVIS) { if (process.env.TRAVIS) {
const testName = process.env.TRAVIS_PULL_REQUEST ?
`https://github.com/openlayers/openlayers/pull/${process.env.TRAVIS_PULL_REQUEST}` :
`${pkg.name}@${pkg.version} (${process.env.TRAVIS_COMMIT})`;
// see https://wiki.saucelabs.com/display/DOCS/Platform+Configurator // see https://wiki.saucelabs.com/display/DOCS/Platform+Configurator
// for platform and browserName options (Selenium API, node.js code) // for platform and browserName options (Selenium API, node.js code)
var customLaunchers = { const customLaunchers = {
SL_Chrome: { SL_Chrome: {
base: 'SauceLabs', base: 'SauceLabs',
browserName: 'chrome' browserName: 'chrome'
@@ -72,7 +78,7 @@ module.exports = function(karma) {
}; };
karma.set({ karma.set({
sauceLabs: { sauceLabs: {
testName: pkg.name + '@' + pkg.version, testName: testName,
recordScreenshots: false, recordScreenshots: false,
connectOptions: { connectOptions: {
port: 5757 port: 5757