Fix linux

// FREEBIE
This commit is contained in:
lilia
2017-05-05 23:16:07 -07:00
committed by Scott Nonnenberg
parent ab8edd8690
commit 9a1e0dcdb3
2 changed files with 9 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ install:
script:
- yarn run generate
- ./node_modules/.bin/build --em.environment=$SIGNAL_ENV --config.mac.bundleVersion='$TRAVIS_BUILD_NUMBER' --publish=never
- grunt test-release:$TRAVIS_OS_NAME
- ./travis.sh
- yarn test
env:
global:

8
travis.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start
sleep 3
fi
grunt test-release:$TRAVIS_OS_NAME