forked from life4/flakehell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (49 loc) · 1.29 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
# Config for Travis CI, tests powered by DepHell.
# https://travis-ci.org/
# https://github.com/dephell/dephell
language: python
dist: xenial
# do not run Travis for PR's twice (as for push and as for PR)
branches:
only:
- master
before_install:
# show a little bit more information about environment
- sudo apt-get install -y tree
- env
- tree
# install DepHell
# https://github.com/travis-ci/travis-ci/issues/8589
- curl -L dephell.org/install | /opt/python/3.7/bin/python
- dephell inspect self
install:
- dephell venv create --env=$ENV --python="/opt/python/$TRAVIS_PYTHON_VERSION/bin/python"
- dephell deps install --env=$ENV
- dephell project register
script:
- dephell venv run --env=$ENV
matrix:
include:
- python: "3.6.7"
env: ENV=pytest
- python: "3.7"
env: ENV=pytest
- python: "3.8"
env: ENV=pytest
- name: lint
python: "3.7"
env: ENV=main
- python: "3.7"
env: ENV=typing
# https://github.com/igorshubovych/markdownlint-cli
- name: markdown lint
language: node_js
node_js: "14"
before_install:
- true
install:
- npm install -g markdownlint-cli
script:
- bash -c "markdownlint --config markdownlint.json **/*.md"
- python: "3.7"
env: ENV=docs