Skip to content

Commit 9feb2dd

Browse files
committed
Merge branch 'develop' into 'master'
Release 2.0.0
2 parents becfa6a + d2e12c8 commit 9feb2dd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+1143
-2428
lines changed

.github/workflows/tests.yml

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
on: [push, pull_request]
2+
jobs:
3+
tests:
4+
name: ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.version }}-python-${{ matrix.python-version }}-${{ matrix.castxml-epic }}
5+
runs-on: ${{ matrix.os }}
6+
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
include:
11+
- os: ubuntu-18.04
12+
compiler: gcc
13+
version: "7"
14+
python-version: 3.5
15+
castxml: "castxml"
16+
castxml-epic: 0
17+
cppstd: "-std=c++98"
18+
19+
- os: ubuntu-18.04
20+
compiler: gcc
21+
version: "7"
22+
python-version: 3.6
23+
castxml: "castxml"
24+
castxml-epic: 0
25+
cppstd: "-std=c++98"
26+
27+
- os: ubuntu-18.04
28+
compiler: gcc
29+
version: "7"
30+
python-version: 3.7
31+
castxml: "castxml"
32+
castxml-epic: 0
33+
cppstd: "-std=c++98"
34+
35+
- os: ubuntu-18.04
36+
compiler: gcc
37+
version: "7"
38+
python-version: 3.8
39+
castxml: "castxml"
40+
castxml-epic: 0
41+
cppstd: "-std=c++98"
42+
43+
- os: ubuntu-18.04
44+
compiler: gcc
45+
version: "7"
46+
python-version: 3.8
47+
castxml: "castxml"
48+
castxml-epic: 1
49+
cppstd: "-std=c++98"
50+
51+
- os: ubuntu-18.04
52+
compiler: gcc
53+
version: "7"
54+
python-version: 3.8
55+
castxml: "castxml"
56+
castxml-epic: 1
57+
cppstd: "-std=c++11"
58+
59+
- os: macos-latest
60+
compiler: xcode
61+
version: "default"
62+
python-version: 3.8
63+
castxml: "castxml"
64+
castxml-epic: 0
65+
cppstd: "-std=c++98"
66+
67+
steps:
68+
- uses: actions/checkout@v2
69+
- name: Set up Python ${{ matrix.python-version }}
70+
uses: actions/setup-python@v1
71+
with:
72+
python-version: ${{ matrix.python-version }}
73+
- name: Display Python version
74+
run: python -c "import sys; print(sys.version)"
75+
- name: Setup castxml for Linux
76+
if: matrix.os == 'ubuntu-18.04' && matrix.castxml == 'castxml'
77+
run: |
78+
wget -q -O - https://data.kitware.com/api/v1/file/hashsum/sha512/f43ef30267c850872cf1e8ea8594c5dc6a1beb7c343d63875662ee7c648dac4f9214c915499ef2e1148f2b5f866e4c518ca1a21fb5055baba7d62f4f69097ba0/download | tar zxf - -C ~/
79+
- name: Setup castxml for Mac
80+
if: matrix.os == 'macos-latest'
81+
run: |
82+
wget -q -O - https://data.kitware.com/api/v1/file/hashsum/sha512/88c9b5954ca7417f7b519f3006dc6fe4bd194af0837168edc30007a41eaae6d4eee97cef2a72747432af14941c7f60333b77c25e208b2540dcde2d61e0d0e6f3/download | tar zxf - -C ~/
83+
- name: Setup castxml config
84+
if: matrix.compiler == 'gcc' && matrix.version == '7'
85+
run: mv unittests/configs/gcc7.cfg unittests/xml_generator.cfg;
86+
- name: Install Python lib and test libs
87+
run: |
88+
pip install .[test]
89+
- name: Run tests
90+
run: |
91+
export PATH=~/castxml/bin:$PATH
92+
coverage run -m unittests.test_all
93+
coverage combine
94+
- name: Upload coverage to Codecov
95+
uses: codecov/codecov-action@v1
96+
with:
97+
token: ${{ secrets.CODECOV_TOKEN }}
98+
file: .coverage
99+
flags: unittests
100+
env_vars: OS,PYTHON
101+
name: codecov-umbrella
102+
fail_ci_if_error: true

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ docs/examples/caching/example.hpp.xml
1616
test_cost.log
1717
docs/apidocs
1818
htmlcov
19+
/venv/

.travis.yml

-278
This file was deleted.

0 commit comments

Comments
 (0)