Skip to content

Commit

Permalink
Merge pull request #589 from alan-turing-institute/alexmorley-travis-…
Browse files Browse the repository at this point in the history
…matrix

Try out matrix build
  • Loading branch information
NatalieZelenka committed May 28, 2019
2 parents 9d69c70 + 3998fd2 commit 4caa50b
Showing 1 changed file with 22 additions and 25 deletions.
47 changes: 22 additions & 25 deletions .travis.yml
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

0 comments on commit 4caa50b

Please sign in to comment.