forked from repology/py-libversion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (42 loc) · 1.15 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
language: python
dist: focal
sudo: required
matrix:
include:
# base
- python: 3.6
env: CC=gcc LIBVERSION=master
# python versions
- python: 3.7
env: CC=gcc LIBVERSION=master
- python: 3.8
env: CC=gcc LIBVERSION=master
- python: 3.9-dev
env: CC=gcc LIBVERSION=master
- python: nightly
env: CC=gcc LIBVERSION=master
# compilers
- python: 3.6
env: CC=clang LIBVERSION=master
# libversion versions
- python: 3.6
env: CC=gcc LIBVERSION=2.9.1
- python: 3.6
env: CC=gcc LIBVERSION=2.8.2
- python: 3.6
env: CC=gcc LIBVERSION=2.7.0
- python: 3.6
env: CC=gcc LIBVERSION=2.6.0
install:
- pip install -r requirements-dev.txt
- pip install cmp_version
- pip install version || true # for the case it learns python3
- wget -qO- https://github.com/repology/libversion/archive/$LIBVERSION.tar.gz | tar -xzf- && ( cd libversion-$LIBVERSION && cmake . && make && sudo make install && sudo ldconfig )
script:
- flake8
- python setup.py test
- python setup.py install
- mypy --strict tests/*.py
- cd demos
- ${PYTHON} ./compare.py
- ${PYTHON} ./benchmark.py