Skip to content

Commit d016568

Browse files
author
Ryan A. Johnson
committed
test: disable test setup logic
1 parent f95aced commit d016568

File tree

3 files changed

+40
-32
lines changed

3 files changed

+40
-32
lines changed

.travis.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@ sudo: required
22
dist: trusty
33
language: node_js
44
node_js:
5-
- '8'
5+
- '12'
66
notifications:
77
email: false
88
addons:
99
firefox: '61.0'
10-
sauce_connect: true
10+
#sauce_connect: true
1111
branch:
1212
only:
1313
- master
1414
install:
15-
- npm i -g yarn
16-
- travis_retry yarn install
17-
- cd test; travis_retry yarn install; yarn run webdriver:update; cd -;
15+
- npm i -g yarn
16+
- travis_retry yarn install
17+
#- cd test; travis_retry yarn install; yarn run webdriver:update; cd -;
1818
before_script:
19-
- export DISPLAY=:99.0
20-
- sh -e /etc/init.d/xvfb start
21-
- jdk_switcher use oraclejdk8
22-
- yarn serve > /dev/null 2>&1 &
23-
- while ! curl --silent http://localhost:3000 > /dev/null 2>&1; do sleep 1; done
19+
- export DISPLAY=:99.0
20+
#- sh -e /etc/init.d/xvfb start
21+
#- jdk_switcher use oraclejdk8
22+
#- yarn serve > /dev/null 2>&1 &
23+
#- while ! curl --silent http://localhost:3000 > /dev/null 2>&1; do sleep 1; done
2424
script:
25-
# - yarn test:coverage
26-
- yarn lint
27-
- yarn test
25+
- yarn lint
26+
#- yarn test:coverage
27+
#- yarn test

scripts/serve.js

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,27 @@ const server = app.listen(3000, () => {
1717
console.log('Use CTRL-C to stop the server.');
1818
});
1919

20+
/**
21+
* 2019-11-01: Selenium isn't being used, right now, so I've
22+
* commented it out to speed up pipeline procesing. This will
23+
* need to be re-enabled when we get browser tests up and running.
24+
*/
25+
2026
// Start Selenium
21-
const selenium = exec('yarn webdriver:start', { cwd: CONFIG.testDir });
22-
if (selenium) {
23-
console.log('selenium started');
24-
}
27+
//const selenium = exec('yarn webdriver:start', { cwd: CONFIG.testDir });
28+
//if (selenium) {
29+
// console.log('selenium started');
30+
//}
31+
2532

2633
// Cleanup on Exit
2734
process.on('SIGINT', function () {
2835
console.log('Stopping...');
2936

3037
// Cleanup Selenium
31-
if (selenium) {
32-
selenium.kill();
33-
}
38+
//if (selenium) {
39+
// selenium.kill();
40+
//}
3441

3542
// Close Server
3643
server.close(() => {

scripts/start.js

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,18 @@ browserSync.init({
137137
},
138138

139139
// Re-transpile test files
140-
{
141-
match: [
142-
`${CONFIG.testDir}/**/*.ts`,
143-
`!${CONFIG.testDir}/node_modules/**`,
144-
`!${CONFIG.testDir}/built/**/*`,
145-
],
146-
fn: _.debounce(() => {
147-
const tsc = exec('yarn build', { cwd: CONFIG.testDir });
148-
tsc.stdout.pipe(process.stdout);
149-
tsc.stderr.pipe(process.stderr);
150-
}, 1500),
151-
},
140+
// 2019-11-01: temporarily disabled (unused; wasting cpu cycles)
141+
//{
142+
// match: [
143+
// `${CONFIG.testDir}/**/*.ts`,
144+
// `!${CONFIG.testDir}/node_modules/**`,
145+
// `!${CONFIG.testDir}/built/**/*`,
146+
// ],
147+
// fn: _.debounce(() => {
148+
// const tsc = exec('yarn build', { cwd: CONFIG.testDir });
149+
// tsc.stdout.pipe(process.stdout);
150+
// tsc.stderr.pipe(process.stderr);
151+
// }, 1500),
152+
//},
152153
],
153154
});

0 commit comments

Comments
 (0)