Skip to content

Commit 7f284ae

Browse files
authored
Run the codecombat build in a single shell instance (#122)
It turns out it's not as easy to split up as atom, due to the environment variables being set.
1 parent 883badc commit 7f284ae

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

examples/codecombat/config.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,14 @@ export default {
66
'babel-plugin-transform-remove-strict-mode',
77
'babel-loader',
88
],
9-
testCommands: [
10-
`
9+
testCommands: [`
1110
set -e
1211
export COCO_TRAVIS_TEST=1
1312
export DISPLAY=:99.0
1413
if [ -e /etc/init.d/xvfb ]; then
1514
sh -e /etc/init.d/xvfb start
1615
fi
1716
rm -rf public
18-
`,
19-
`
20-
set -e
2117
rm -rf ./node_modules
2218
source ~/.nvm/nvm.sh
2319
nvm install 5.10.1
@@ -34,8 +30,7 @@ export default {
3430
until [ $n -ge 60 ]; do curl http://localhost:3000 && break; n=$[$n+1]; sleep 1; done
3531
time ./node_modules/karma/bin/karma start --browsers Firefox --single-run --reporters dots
3632
time npm run jasmine
37-
`,
38-
],
33+
`],
3934
expectConversionSuccess: true,
4035
expectTestSuccess: true,
4136
};

0 commit comments

Comments
 (0)