forked from Nuitka/Nuitka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
70 lines (68 loc) · 1.97 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
# Python project, check against all supported things.
language: python
matrix:
include:
- os: linux
python: 2.7
dist: xenial
sudo: required
env: PYTHON=python2.7
cache: ccache
- os: linux
python: 3.4
dist: xenial
sudo: required
env: PYTHON=python3.4
cache: ccache
- os: linux
python: 3.5
dist: xenial
sudo: required
env: PYTHON=python3.5
cache: ccache
- os: linux
python: 3.6
dist: xenial
sudo: required
env: PYTHON=python3.6
cache: ccache
- os: linux
python: 3.7
dist: xenial
sudo: required
env: PYTHON=python3.7
cache: ccache
# - os: osx
# osx_image: xcode11.3
# language: shell
# before_install:
# - brew update -q
# - brew outdated python || brew upgrade python
# - brew install ccache
# - export PATH="/usr/local/opt/ccache/libexec:$PATH"
# env: PYTHON=python
# - os: osx
# osx_image: xcode11.3
# language: shell
# before_install:
# - brew update -q
# - brew outdated python@3 || brew upgrade python@3
# - brew install ccache
# - export PATH="/usr/local/opt/ccache/libexec:$PATH"
# env: PYTHON=python3
# disable submodules from git
git:
submodules: false
# commands to install dependencies
install:
- 'if [ -x "$(command -v apt-get)" ]; then sudo apt-get install chrpath; fi'
- "pip install -r requirements-devel.txt"
- "pip install ."
# commands to run tests
script:
- '$PYTHON -m nuitka --version'
- 'env | sort'
- '$PYTHON ./tests/run-tests --no-other-python --skip-reflection-test --skip-all-cpython-tests'
- 'if [ "$TRAVIS_PYTHON_VERSION" = "3.7" ]; then ./bin/check-nuitka-with-restlint; fi'
- 'if [ "$TRAVIS_PYTHON_VERSION" = "3.7" ]; then ./bin/check-nuitka-with-codespell; fi'
- 'if [ "$TRAVIS_PYTHON_VERSION" = "3.7" ] || [ "$TRAVIS_PYTHON_VERSION" = "2.7" ]; then ./bin/check-nuitka-with-pylint; fi'