forked from internetarchive/openlibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (36 loc) · 1.12 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
os: linux
dist: bionic
language: python
jobs:
include:
- name: “Python 2.7 on xenial”
python: "2.7"
dist: xenial
- name: “Python 2.7 on bionic”
python: "2.7"
- name: “Python 3.8 make lint and selected pytests”
python: "3.8"
before_script: true # override npm install below
script:
# On pull requests, run all flake8 tests on modified code
# if clause avoids `fatal: ambiguous argument 'origin/master'` on git push
- if [ "$TRAVIS_EVENT_TYPE" == "pull_request" ]; then
make lint-diff;
fi
- source scripts/test-py3.sh
- name: “Python 3.8 on bionic”
python: "3.8"
allow_failures:
- name: “Python 3.8 on bionic”
install:
- pip install -r requirements_test.txt
# if Travis is running Python 3, then
# refresh the git submodule ./vendor/infogami
- if [ "$TRAVIS_PYTHON_VERSION" == "3.8" ]; then
pushd vendor/infogami && git pull origin master && popd;
fi
- make lint # TODO: Move this to script: section after #2951 lands
before_script: npm install
script:
- make i18n
- make test