forked from hove-io/navitia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (45 loc) · 1.26 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
52
53
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
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
- pip install pre-commit
- pre-commit install
- bash source/scripts/build_protobuf.sh
script:
- bash source/scripts/check_submodules.sh
- pre-commit run clang-format-6.0 --all --show-diff-on-failure
- pushd source/tyr && PYTHONPATH=.:../navitiacommon/ py.test --doctest-modules --ignore=migrations/ ; popd
matrix:
include:
- python: "3.6"
before_script:
- python3.6 -m pip install black==18.9b0
- pip install -r source/jormungandr/requirements_dev.txt
- bash source/scripts/build_protobuf.sh
script:
- black --check --diff .
- pushd source/jormungandr && MYPYPATH=.:../navitiacommon mypy --ignore-missing-imports --py2 jormungandr && popd
exclude:
- python: "3.6"