forked from CesiumGS/cesium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Run non-webgl tests as part of travis using Electron. They run in both module and release form. 2. Run cloc as part of the build process 3. jsHint no longer fails the gulp task when you run `npm run jsHint`, since that behavior was really annoying. It still fails under travis or when passed the `--failTaskOnError` option. 4. Improve log output by using travis folding commands. Each part of the build is now collapsed into its own section. 5. Added `--suppressPassed` option to avoid showing passed tests in output. Our travis log got too big and travis refused to show it (even with the folding) unless you looked at raw test.
- Loading branch information
Showing
2 changed files
with
49 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,28 @@ | ||
language: node_js | ||
node_js: | ||
- "0.12" | ||
- '0.12' | ||
sudo: false | ||
before_script: | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
script: | ||
- npm run jsHint | ||
- echo 'cloc' && echo -en 'travis_fold:start:script.cloc\\r' | ||
- npm run cloc | ||
- echo -en 'travis_fold:end:script.cloc\\r' | ||
|
||
- echo 'jsHint' && echo -en 'travis_fold:start:script.jsHint\\r' | ||
- npm run jsHint --failTaskOnError | ||
- echo -en 'travis_fold:end:script.jsHint\\r' | ||
|
||
- echo 'test non-webgl' && echo -en 'travis_fold:start:script.test\\r' | ||
- npm run test -- --exclude WebGL --browsers Electron --failTaskOnError --suppressPassed | ||
- echo -en 'travis_fold:end:script.test\\r' | ||
|
||
- echo 'makeZipFile' && echo -en 'travis_fold:start:script.makeZipFile\\r' | ||
- npm run clean | ||
- npm run makeZipFile | ||
- echo -en 'travis_fold:end:script.makeZipFile\\r' | ||
|
||
- echo 'test non-webgl release' && echo -en 'travis_fold:start:script test.release\\r' | ||
- npm run test -- --exclude WebGL --browsers Electron --failTaskOnError --release --suppressPassed | ||
- echo -en 'travis_fold:end:script test.release\\r' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters