-
Notifications
You must be signed in to change notification settings - Fork 641
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #589 from alan-turing-institute/alexmorley-travis-…
…matrix Try out matrix build
- Loading branch information
Showing
1 changed file
with
22 additions
and
25 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,27 +1,24 @@ | ||
# refer to https://docs.travis-ci.com/user/languages/minimal-and-generic/#generic | ||
# for the rationale behind choosing the generic lang | ||
language: generic | ||
dist: xenial # ubuntu 16.04 | ||
matrix: | ||
include: | ||
- os: linux | ||
env: PYTHON=3.6 | ||
|
||
cache: bundler | ||
|
||
before_install: # get a reasonably new version of python3 and pip | ||
- sudo apt-get install python3-pip | ||
- sudo -H pip3 install --upgrade pip | ||
- sudo apt-get install python3-setuptools | ||
|
||
install: | ||
- pip3 install --user -r ./book/website/requirements.txt # install things for the book | ||
- pip3 install --user -U attrs pytest # the installed versions in Travis are too old! | ||
|
||
script: | ||
- bash ./scripts/test-file-size.sh # test that we haven't accidentally included any big files | ||
- python3 ./scripts/lorem-ipsums.py # check for rogue "lorem ipsum"s | ||
# Below here, "scripts" directory refers to the one in book/website: | ||
- cd ./book/website | ||
- make install # install jekyll etc. for building website | ||
- bash ./scripts/html-proof.sh # check dead links etc. | ||
# refer to https://docs.travis-ci.com/user/languages/minimal-and-generic/#generic | ||
# for the rationale behind choosing the generic lang | ||
- language: generic | ||
dist: xenial # ubuntu 16.04 | ||
cache: bundler | ||
before_install: # get a reasonably new version of python3 and pip | ||
- sudo apt-get install python3-pip | ||
- sudo -H pip3 install --upgrade pip | ||
- sudo apt-get install python3-setuptools | ||
install: | ||
- pip3 install --user -r ./book/website/requirements.txt # install things for the book | ||
- pip3 install --user -U attrs pytest # the installed versions in Travis are too old! | ||
script: | ||
# Below here, "scripts" directory refers to the one in book/website: | ||
- cd ./book/website | ||
- make install # install jekyll etc. for building website | ||
- bash ./scripts/html-proof.sh # check dead links etc. | ||
- language: python | ||
python: 3.6 | ||
script: | ||
- bash ./scripts/test-file-size.sh # test that we haven't accidentally included any big files | ||
- python3 ./scripts/lorem-ipsums.py # check for rogue "lorem ipsum"s |