forked from dephell/dephell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
87 lines (77 loc) · 2.32 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
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
# - curl https://raw.githubusercontent.com/dephell/dephell/master/install.py | /opt/python/3.6/bin/python
# https://github.com/travis-ci/travis-ci/issues/8589
- >
/opt/python/3.7/bin/python install.py
--branch=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}
--slug=${TRAVIS_PULL_REQUEST_SLUG:-dephell/dephell}
- dephell inspect self
install:
- dephell venv create --env=$ENV --python="/opt/python/$TRAVIS_PYTHON_VERSION/bin/python" --level=DEBUG --traceback
- dephell deps install --env=$ENV --level=DEBUG --traceback
script:
- dephell venv run --env=$ENV --level=DEBUG --traceback
matrix:
include:
- python: "3.5"
env: ENV=pytest
- python: "3.6.7"
env: ENV=pytest
- python: "3.7"
env: ENV=pytest
# - python: "3.8-dev"
# env: ENV=pytest
- python: "pypy3.5"
env: ENV=pytest
- os: osx
language: generic
env: ENV=pytest
before_install:
- >
/usr/local/bin/python3 install.py
--branch=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}
--slug=${TRAVIS_PULL_REQUEST_SLUG:-dephell/dephell}
- dephell inspect self
install:
- dephell venv create --env=$ENV --python=/usr/local/bin/python3 --level=DEBUG --traceback
- dephell deps install --env=$ENV --level=DEBUG --traceback
# https://github.com/igorshubovych/markdownlint-cli
- name: markdown lint
language: generic
install:
- npm install -g markdownlint-cli
script:
- bash -c "markdownlint --config markdownlint.json **/*.md"
- name: offline
python: "3.7"
env: ENV=pytest
script:
- dephell venv run --env=$ENV pytest --no-network tests/
- python: "3.7"
env: ENV=flake8
- python: "3.7"
env: ENV=isort
script:
- dephell venv run --env=$ENV flake8
- python: "3.7"
env: ENV=docs
- name: poetry
python: "3.7"
env: ENV=main
before_install:
- pip install poetry
install:
- poetry install -vvv
script:
- dephell inspect self