Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

split Travis into parallel test suites #7773

Merged
merged 3 commits into from
Mar 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,30 @@ node_js:
- "7"
dist: trusty
sudo: required
cache:
directories:
- node_modules
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
before_script:
- npm run download-sync-client
- npm run lint && npm test
script:
- npm run lint
- npm run testsuite
notifications:
slack:
secure: bDwO2uce5JAZvjrvWj4+/+yEXJAIK4O0RcgUWvZ2IMbi7Q9I89Mw40JmkLWL6x2gWZwxr8+FoLtErJA7RVrsfImjrX+NmMyAB7AydLdrBJtkLozNnuacnhcnBRyp1gGCa1ymxCEXGbgC6onAD3kiJJhggr70T+2lu3IuJYXENhc=
env:
- CXX=g++-4.8 NODE_ENV=test
- CXX=g++-4.8 NODE_ENV=test TEST_DIR=unit
- CXX=g++-4.8 NODE_ENV=test TEST_DIR=about
- CXX=g++-4.8 NODE_ENV=test TEST_DIR=app
- CXX=g++-4.8 NODE_ENV=test TEST_DIR=bookmark-components
- CXX=g++-4.8 NODE_ENV=test TEST_DIR=bravery-components
- CXX=g++-4.8 NODE_ENV=test TEST_DIR=contents
- CXX=g++-4.8 NODE_ENV=test TEST_DIR=misc-components
- CXX=g++-4.8 NODE_ENV=test TEST_DIR=navbar-components
- CXX=g++-4.8 NODE_ENV=test TEST_DIR=tab-components
addons:
apt:
sources:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"start2": "node ./tools/start.js --user-data-dir=brave-development-2 --debug=5859 --enable-logging --v=0 --enable-extension-activity-logging --enable-sandbox-logging --enable-dcheck",
"start-brk": "node ./tools/start.js --debug-brk=5858 -enable-logging --v=0 --enable-dcheck",
"test": "cross-env NODE_ENV=test mocha \"test/**/*Test.js\"",
"testsuite": "cross-env NODE_ENV=test mocha \"test/$TEST_DIR/**/*Test.js\"",
"unittest": "cross-env NODE_ENV=test mocha \"test/unit/**/*Test.js\"",
"unittest-cov": "node --harmony node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report html --report text -x \"test/unit/**/*Test.js\" -- \"test/unit/**/*Test.js\"",
"uitest": "cross-env NODE_ENV=test mocha \"test/about/**/*Test.js\" \"test/app/**/*Test.js\" \"test/components/**/*Test.js\" \"test/lib/**/*Test.js\"",
Expand Down