forked from hove-io/navitia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (43 loc) · 1.2 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
language: python
python:
- "2.7"
- "3.6"
sudo: required
cache: pip
dist: xenial
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- clang-format-6.0
- rabbitmq-server
services:
- docker
- rabbitmq
- redis
git:
submodules: false
# This script is triggered only with python2.7 (as below python3.6 is excluded from the matrix)
before_install:
- sudo apt update && sudo apt install -y protobuf-compiler
- sed -i 's,git\@github.com:\([^/]*\)/\(.*\).git,https://github.com/\1/\2,' .gitmodules
- git submodule update --init --recursive
before_script:
- pip install -r source/tyr/requirements_dev.txt
- bash source/scripts/build_protobuf.sh
script:
- bash source/scripts/check_submodules.sh
- pushd source/tyr && PYTHONPATH=.:../navitiacommon/ py.test --doctest-modules --ignore=migrations/ ; popd
matrix:
include: # This script is triggered only with python3.6
- python: "3.6"
before_script:
- pip install -r requirements_pre-commit.txt
- pip install pre-commit
- pre-commit install
- bash source/scripts/build_protobuf.sh
script:
- pre-commit run --all --show-diff-on-failure
exclude:
- python: "3.6"