forked from nucleic/kiwi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (52 loc) · 1.49 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
language: python
# newer python versions are available only on xenial
# (while some older only on trusty) Ubuntu distribution
dist: xenial
sudo: required
cache: pip
addons:
apt:
packages: lcov
branches:
only:
- main
jobs:
include:
- name: "run test suite with python 3.6 on ARM64"
arch: arm64
python: 3.6
- name: "run test suite with python 3.7 on ARM64"
arch: arm64
python: 3.7
- name: "run test suite with python 3.8 on ARM64"
arch: arm64
python: 3.8
# ARM currently does not have 3.9, should add it later
# added power support ppc64le arch
- name: "run test suite with python 3.6 on PPC64le"
arch: ppc64le
python: 3.6
- name: "run test suite with python 3.7 on PPC64le"
arch: ppc64le
python: 3.7
- name: "run test suite with python 3.8 on PPC64le"
arch: ppc64le
python: 3.8
- name: "run test suite with python 3.9 on PPC64le"
arch: ppc64le
python: 3.9
env:
- CPPFLAGS=--coverage
before_install:
- pip install --upgrade pip
- pip install https://github.com/nucleic/cppy/tarball/main
install:
- python setup.py develop
script:
- python -m pytest py/tests
after_success:
- lcov --capture --directory . --output-file coverage.info
- lcov --remove coverage.info '/usr/*' --output-file coverage.info # filter system-files
- lcov --list coverage.info
# Uploading to CodeCov but excluding gcov reports
- bash <(curl -s https://codecov.io/bash) -f "!*.gcov" -X gcov || echo "Codecov did not collect coverage reports"