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

Commit

Permalink
Refactor travis-ci to use parallel jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Jan 8, 2019
1 parent 5fb6da8 commit f826ee0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
21 changes: 19 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,24 @@ addons:
chrome: stable
install:
- npm install
# install synapse prerequisites for end to end tests
- sudo apt-get install build-essential python2.7-dev libffi-dev python-pip python-setuptools sqlite3 libssl-dev python-virtualenv libjpeg-dev libxslt1-dev
- ./scripts/travis/install-deps.sh
script:
./scripts/travis.sh

matrix:
include:
- name: Linting Checks
script:
# run the linter, but exclude any files known to have errors or warnings.
- npm run lintwithexclusions
- env: End-to-End Tests
install:
- npm install
- ./scripts/travis/install-deps.sh
- sudo apt-get install build-essential python2.7-dev libffi-dev python-pip python-setuptools sqlite3 libssl-dev python-virtualenv libjpeg-dev libxslt1-dev
script:
- ./scripts/travis/test-riot.sh
- name: Unit Tests
script:
- npm run test

6 changes: 0 additions & 6 deletions scripts/travis.sh → scripts/travis/install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,3 @@ ln -s ../matrix-js-sdk node_modules/matrix-js-sdk
cd matrix-js-sdk
npm install
cd ..

npm run test
./.travis-test-riot.sh

# run the linter, but exclude any files known to have errors or warnings.
npm run lintwithexclusions
File renamed without changes.

0 comments on commit f826ee0

Please sign in to comment.