15d221ae0e
Separate linting from testing as follows: - `yarn jscs`: Run JSCS. - `yarn jshint`: Run JSHint. - `yarn lint`: Run all linters, i.e. ESLint, TSLint, JSHint, and JSHint. - `yarn test-node`: Run Mocha tests in Node.js environment. - `yarn test-electron`: Run tests in Electron environment via Grunt. - `yarn test`: Run all tests. CI - Align Travis and AppVeyor scripts as much as possible. - Run linting before tests to fail fast. - Run Node.js (headless and fast) tests first. - Run Electron tests last (Travis seems to require custom setup in `travis.sh`).
13 lines
221 B
Bash
Executable file
13 lines
221 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
export DISPLAY=:99.0
|
|
sh -e /etc/init.d/xvfb start
|
|
sleep 3
|
|
fi
|
|
|
|
yarn test-electron
|
|
|
|
NODE_ENV=production yarn grunt test-release:$TRAVIS_OS_NAME
|