Browse Source

Merge pull request #154 from Empact/enhance/travis-parallel

Bring CI runtime down from ~19 to ~13 minutes
renovate/lint-staged-8.x
JimmyMow 7 years ago
committed by GitHub
parent
commit
ecbe91c5df
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      .travis.yml
  2. 2
      package.json

16
.travis.yml

@ -2,29 +2,31 @@ sudo: false
language: node_js
env:
- TEST=lint-ci
- TEST=test-ci
node_js:
- 8
- 7
cache:
apt: true
yarn: true
directories:
- node_modules
- flow-typed
- app/node_modules
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- icnsutils
- graphicsmagick
- xz-utils
- xorriso
install:
- export CXX="g++-4.8"
- yarn
- cd app && yarn && cd ..
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
@ -35,8 +37,4 @@ before_script:
- sleep 3
script:
- node --version
- yarn lint
- yarn package
- yarn test
- yarn test-e2e
- "yarn $TEST"

2
package.json

@ -12,6 +12,7 @@
"flow": "flow",
"flow-typed": "rimraf flow-typed/npm && flow-typed install --overwrite || true",
"lint": "eslint --cache --format=node_modules/eslint-formatter-pretty .",
"lint-ci": "npm run lint && npm run flow",
"lint-fix": "npm run lint -- --fix",
"lint-styles": "stylelint app/*.css app/components/*.css --syntax scss",
"lint-styles-fix": "stylefmt -r app/*.css app/components/*.css",
@ -25,6 +26,7 @@
"start-main-dev": "cross-env HOT=1 NODE_ENV=development electron -r babel-register ./app/main.dev",
"start-renderer-dev": "cross-env NODE_ENV=development node --trace-warnings -r babel-register ./node_modules/webpack-dev-server/bin/webpack-dev-server --config webpack.config.renderer.dev.js",
"test": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=1 node --trace-warnings ./test/runTests.js",
"test-ci": "npm run package && npm run test && npm run test-e2e",
"test-all": "npm run lint && npm run flow && npm run build && npm run test && npm run test-e2e",
"test-e2e": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=1 node --trace-warnings ./test/runTests.js e2e",
"test-watch": "npm test -- --watch",

Loading…
Cancel
Save