forked from autorope/donkeycar
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
105 lines (93 loc) · 3.16 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
---
language: python
# this is required for python 3.7
dist: xenial
# This list should match the versions listed in setup.py
python:
- 3.6
- 3.7
os:
- linux
install:
- sudo apt-get update -qq
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda create -q -n test-environment-$TRAVIS_PYTHON_VERSION python=$TRAVIS_PYTHON_VERSION
- source activate test-environment-$TRAVIS_PYTHON_VERSION
- pip install --upgrade pip
- hash -r
- conda info -a
- pip install -e .[tf]
- pip install -e .[pc]
- pip install -e .[dev]
- pip install -e .[ci]
- pip install -e .[mm1]
- echo "pip freeze virtualenv=test-environment python=${TRAVIS_PYTHON_VERSION}"
- pip freeze > test-environment-${TRAVIS_PYTHON_VERSION}.txt
- cat test-environment-${TRAVIS_PYTHON_VERSION}.txt
script:
- pytest -v donkeycar/tests --cov=./
stages:
- name: docs
- name: lint
- name: deploy
if: branch = master
jobs:
fast_finish: false
allow_failures:
- name: markdownlint
- name: yamllint
- name: black
include:
# mkdocs
- stage: docs
name: mkdocs
language: python
install:
- pip install mkdocs
script:
- mkdocs build
# black - The uncompromising Python code formatter - https://github.com/psf/black
# it requires python 3.6
- stage: lint
name: black
language: python
python: 3.6
install:
- pip install --upgrade pip
- hash -r
- pip install black
script:
- "black --check ."
# yamllint https://github.com/adrienverge/yamllint
- stage: lint
name: yamllint
language: shell
install: skip
script:
- "docker run --rm -v $PWD:/yaml:ro sdesbure/yamllint yamllint ."
# markdownlint CLI https://github.com/06kellyjac/docker_markdownlint-cli
- stage: lint
name: markdownlint
language: shell
install: skip
script:
- "docker run -v $PWD:/markdown:ro 06kellyjac/markdownlint-cli ."
- stage: deploy
python: 3.6
script: skip
deploy:
provider: pypi
username: wroscoe
password:
# yamllint disable-line rule:line-length
secure: Y64NS2etlOIjKMTLQex+5H/QrKdBzwGjhZ9VVp1NXyx76oqg0ygn5lOPcMAvQbuJbGzT0E/5q/EDhJAh6YjyjVYAS2UgBUehpY5Nu0oYFTfWCTC9fbQRn0XRLXPeZR3BKZ1cAxDCMm4a6iZ4M8CqatN73IexcORCYgkIXZfGRVGcAdLonWzkXPqIwe287e7TiQAx6wM6e7k4DRRUFcrw56lLWTG6FEkauQDNXJFlySwesIgFni+K59tHcxP1U00NTV5utTaNzkkFwro4bp6EsVHEYr8Hgz2Sv0mxAggWmXaMGwILahTSVoRznFsik4r3DiOwVEAc+aeTHg9NJin5/ic4ShODMPKkBQInUNxgmE8cZy5EpZ+a9Xbp1dNt/+x56Bmz+bKoQq/e0ydIBNXCeaT41VFyJTjz9db01HwUPZHfp0NCyIo5QcknH98G0oLmaqv43qGJzmaQi0h4BkkmgI5HpkE12MSDC8QFsDKmOXlj/I4WEWXuPslhuKTgYNadFGdTkfbhnbMjRDkuNfL8YSXwnNDTcB5qT3hIYWGVKN2qAAljWniWHdQMMosMv7CwfoM7IO6apgBuvoMJOMunHEgyGDX5Hb1Y5YYa+OC/0eCfcIEScoPM0JHtMmznYlIv5vwx8B3yK0qk0W8nIv65bZvP5eYBF1zLgeE2FLsuc1o=
on: # yamllint disable-line rule:truthy
tags: true
after_success:
- codecov