2018-07-10 18:54:57 +08:00
|
|
|
language: cpp
|
|
|
|
compiler: clang
|
2017-12-22 22:35:11 +08:00
|
|
|
|
2018-01-09 01:27:58 +08:00
|
|
|
os: linux
|
2019-01-27 22:57:02 +08:00
|
|
|
dist: xenial
|
2018-07-10 18:54:57 +08:00
|
|
|
sudo: false
|
2018-01-09 01:27:58 +08:00
|
|
|
|
2018-01-09 20:00:07 +08:00
|
|
|
matrix:
|
|
|
|
include:
|
2017-12-22 22:35:11 +08:00
|
|
|
|
2018-07-10 18:54:57 +08:00
|
|
|
- env: TEST="Unit Tests"
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
2020-03-23 22:19:22 +08:00
|
|
|
- llvm-toolchain-xenial-8
|
2018-07-10 18:54:57 +08:00
|
|
|
packages:
|
2022-04-13 21:19:07 +08:00
|
|
|
- g++ # we need this one for the libstdc++.
|
|
|
|
- clang
|
2018-07-10 18:54:57 +08:00
|
|
|
- ninja-build
|
|
|
|
- python
|
|
|
|
- python-pip
|
|
|
|
- python3
|
|
|
|
- python3-pip
|
|
|
|
- libboost-python-dev
|
2018-10-08 00:46:02 +08:00
|
|
|
- libtiff5-dev
|
|
|
|
- libjpeg-dev
|
2018-07-10 18:54:57 +08:00
|
|
|
install:
|
2019-03-29 01:35:31 +08:00
|
|
|
- pip2 install -q --user setuptools
|
|
|
|
- pip2 install -q --user -r PythonAPI/test/requirements.txt
|
2020-06-04 18:25:39 +08:00
|
|
|
- pip2 install -q --user -r PythonAPI/carla/requirements.txt
|
2019-01-27 22:57:02 +08:00
|
|
|
- pip3 install -q --user setuptools
|
2019-03-29 01:35:31 +08:00
|
|
|
- pip3 install -q --user -r PythonAPI/test/requirements.txt
|
2020-06-04 18:25:39 +08:00
|
|
|
- pip3 install -q --user -r PythonAPI/carla/requirements.txt
|
2018-07-10 18:54:57 +08:00
|
|
|
script:
|
2018-10-07 18:16:58 +08:00
|
|
|
- while sleep 2m; do echo "still building..."; done &
|
2018-11-09 23:41:34 +08:00
|
|
|
- make setup >> build.log 2>&1
|
|
|
|
- make LibCarla >> build.log 2>&1
|
|
|
|
- make PythonAPI >> build.log 2>&1
|
2019-04-16 20:09:55 +08:00
|
|
|
- make examples >> build.log 2>&1
|
2018-10-07 18:16:58 +08:00
|
|
|
- kill %1
|
2018-07-10 18:54:57 +08:00
|
|
|
- make check ARGS="--all --gtest_args=--gtest_filter=-*_mt"
|
2018-10-07 18:16:58 +08:00
|
|
|
after_failure:
|
2018-10-08 00:46:02 +08:00
|
|
|
- tail --lines=2000 build.log
|
2018-07-10 18:54:57 +08:00
|
|
|
|
2019-01-27 23:45:36 +08:00
|
|
|
- env: TEST="Pylint 2"
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- python
|
|
|
|
- python-pip
|
|
|
|
install:
|
|
|
|
- pip2 install -q --user pylint
|
2019-03-29 01:35:31 +08:00
|
|
|
- pip2 install -q --user -r PythonAPI/carla/requirements.txt
|
|
|
|
- pip2 install -q --user -r PythonAPI/examples/requirements.txt
|
|
|
|
- pip2 install -q --user -r PythonAPI/test/requirements.txt
|
|
|
|
- pip2 install -q --user -r PythonAPI/util/requirements.txt
|
2019-01-27 23:45:36 +08:00
|
|
|
script:
|
2019-03-15 18:13:24 +08:00
|
|
|
- shopt -s globstar
|
2019-07-09 01:42:09 +08:00
|
|
|
- pylint --disable=R,C --rcfile=PythonAPI/.pylintrc PythonAPI/**/*.py Util/BuildTools/*.py
|
2019-01-27 23:45:36 +08:00
|
|
|
|
2019-10-04 17:46:30 +08:00
|
|
|
- env: TEST="Pylint 3"
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- python3
|
|
|
|
- python3-pip
|
|
|
|
install:
|
|
|
|
- pip3 install -q --user setuptools
|
|
|
|
- pip3 install -q astroid==2.2.5 pylint==2.3.1
|
|
|
|
- pip3 install -q --user -r PythonAPI/carla/requirements.txt
|
|
|
|
- pip3 install -q --user -r PythonAPI/examples/requirements.txt
|
|
|
|
- pip3 install -q --user -r PythonAPI/test/requirements.txt
|
|
|
|
- pip3 install -q --user -r PythonAPI/util/requirements.txt
|
|
|
|
- pip3 install -q --user -r Util/Docker/requirements.txt
|
|
|
|
script:
|
|
|
|
- shopt -s globstar
|
|
|
|
- pylint --disable=R,C --rcfile=PythonAPI/.pylintrc PythonAPI/**/*.py Util/Docker/*.py Util/BuildTools/*.py
|
2019-01-27 23:45:36 +08:00
|
|
|
|
2018-04-17 20:05:50 +08:00
|
|
|
- env: TEST="MkDocs"
|
|
|
|
install:
|
2019-06-28 00:43:43 +08:00
|
|
|
- pip install -q --user -r PythonAPI/docs/requirements.txt
|
2018-10-07 18:16:58 +08:00
|
|
|
- pip install -q --user mkdocs
|
2018-04-17 20:05:50 +08:00
|
|
|
script:
|
2019-07-09 22:03:58 +08:00
|
|
|
- make PythonAPI.docs
|
2020-01-24 22:04:22 +08:00
|
|
|
- git diff --quiet HEAD --; if [ ! $? -eq 0 ]; then echo "Python API reference changed, forgot to run \"make PythonAPI.docs\"?"; exit 1; fi
|
2018-04-17 20:05:50 +08:00
|
|
|
- mkdocs build --verbose --clean --strict --site-dir _site
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|