-
Notifications
You must be signed in to change notification settings - Fork 36
/
.travis.yml
124 lines (117 loc) · 3.19 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
---
notifications:
email: false
jobs:
include:
- name: Build and run tests (amd64)
os: linux
dist: focal
arch: amd64
language: cpp
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
env: COMPILER=g++-8
script:
- mkdir -p build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DTWEEDLEDUM_TESTS=ON ..
- make -j2 run_tests
- ./tests/run_tests
- name: Build and run tests (arm64)
os: linux
dist: focal
arch: arm64
language: cpp
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
env: COMPILER=g++-8
script:
- mkdir -p build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DTWEEDLEDUM_TESTS=ON ..
- make -j2 run_tests
- ./tests/run_tests
- name: Build and run tests (ppc64le)
os: linux
dist: focal
arch: ppc64le
language: cpp
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
env: COMPILER=g++-8
script:
- mkdir -p build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DTWEEDLEDUM_TESTS=ON ..
- make -j2 run_tests
- ./tests/run_tests
- name: Build and run tests (s390x)
os: linux
dist: focal
arch: s390x
language: cpp
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
env: COMPILER=g++-8
script:
- mkdir -p build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DTWEEDLEDUM_TESTS=ON ..
- make -j2 run_tests
- ./tests/run_tests
# Build wheels
# - arch: arm64
# - arch: ppc64le
- name: Build wheels (macOS)
os: osx
osx_image: xcode10.2
language: shell
env:
- CC=gcc-10
- CXX=g++-10
- CXXFLAGS="-static-libgcc -static-libstdc++"
- CIBW_BUILD="cp3*-macosx_x86_64"
- CIBW_TEST_REQUIRES=pytest
- CIBW_TEST_COMMAND="pytest --import-mode importlib -v {project}/python/test/"
- CMAKE_BUILD_PARALLEL_LEVEL=2
before_install:
- HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install gcc@10
install:
- python3 -m pip install -U pip
- python3 -m pip install -U cibuildwheel==2.1.1
script: python3 -m cibuildwheel --output-dir wheelhouse
# - language: python
# python: 3.7
# arch: s390x
# services: docker
# env:
# - CIBW_TEST_REQUIRES=pytest
# - CIBW_TEST_COMMAND="pytest --import-mode importlib -v {project}/python/test/"
# - CMAKE_BUILD_PARALLEL_LEVEL=2
# - CIBW_SKIP="cp27-* cp34-* cp35-* pp*"
# install:
# - curl https://sh.rustup.rs -sSf | sh -s -- -y
# - export PATH=$PATH:~/.cargo/bin
# - python3 -m pip install -U pip
# - python3 -m pip install -U twine cibuildwheel
# script: python3 -m cibuildwheel --output-dir wheelhouse