-
Notifications
You must be signed in to change notification settings - Fork 89
/
.travis.yml
157 lines (145 loc) · 4.55 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
cache:
ccache: true
jobs:
include:
- name: "Linux AMD64 tests"
arch: amd64
os: linux
dist: bionic
group: travis_latest
language: python
python: "3.6"
addons:
apt:
packages:
- libblas-dev
- liblapack-dev
- bc
script:
- cd "${TRAVIS_BUILD_DIR}"/tests
- pip install jinja2
- python tester.py testset_travis_blasfeo_pm_double_amd64.json
- python tester.py testset_travis_blasfeo_pm_single_amd64.json
- python tester.py testset_travis_blasfeo_cm_double_amd64.json
- python tester.py testset_travis_blasfeo_cm_double_amd64_packalg.json
- python tester.py testset_travis_blasfeo_cm_single_amd64.json
- python tester.py testset_travis_blas_pm_double_amd64.json
- python tester.py testset_travis_blas_pm_single_amd64.json
- python tester.py testset_travis_blas_cm_double_amd64.json
- python tester.py testset_travis_blas_cm_single_amd64.json
- name: "Linux ARM64 tests"
arch: arm64
os: linux
dist: bionic
group: travis_latest
language: python
python: "3.6"
addons:
apt:
packages:
- libblas-dev
- liblapack-dev
- bc
script:
- cd "${TRAVIS_BUILD_DIR}"/tests
- pip install jinja2
- python tester.py testset_travis_blasfeo_pm_double_arm64.json
- python tester.py testset_travis_blasfeo_pm_single_arm64.json
- python tester.py testset_travis_blasfeo_cm_double_arm64.json
- python tester.py testset_travis_blasfeo_cm_double_arm64_packalg.json
- python tester.py testset_travis_blasfeo_cm_single_arm64.json
- python tester.py testset_travis_blas_pm_double_arm64.json
- python tester.py testset_travis_blas_pm_single_arm64.json
- name: "Linux ARM32 make build"
arch: arm64
os: linux
dist: bionic
group: travis_latest
addons:
apt:
packages:
- gcc-arm-linux-gnueabihf
- libc6-dev-armhf-cross
- bc
install:
- sudo dpkg --add-architecture armhf
- sudo apt update
- sudo apt install libc6:armhf
- sudo dpkg --print-architecture
- sudo dpkg --print-foreign-architectures
script:
- make CC=arm-linux-gnueabihf-gcc TARGET=ARMV7A_ARM_CORTEX_A15 static_library -j 8
- make CC=arm-linux-gnueabihf-gcc TARGET=ARMV7A_ARM_CORTEX_A15 shared_library -j 8
- make CC=arm-linux-gnueabihf-gcc TARGET=ARMV7A_ARM_CORTEX_A15 -C examples/ example_d_riccati_recursion
- name: "Linux AMD64 cmake build"
arch: amd64
os: linux
dist: bionic
group: travis_latest
addons:
apt:
packages:
- bc
script:
- mkdir "${TRAVIS_BUILD_DIR}"/build
- cd "${TRAVIS_BUILD_DIR}"/build
- cmake ..
- make
- cd examples
- ./getting_started
- name: "Windows AMD64 cmake build"
os: windows
language: bash
group: travis_latest
addons:
apt:
packages:
- bc
script:
- export PATH="/C/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/MSBuild/15.0/Bin":$PATH
- mkdir "${TRAVIS_BUILD_DIR}"/build
- cd "${TRAVIS_BUILD_DIR}"/build
- cmake -DTARGET=GENERIC ..
- MSBuild.exe blasfeo.vcxproj
- cd examples
- MSBuild.exe getting_started.vcxproj
- cd Debug
- ./getting_started.exe
- name: "MacOS build"
if: branch = mac_build
os: osx
osx_image: xcode10.2
language: shell
script:
- cd "${TRAVIS_BUILD_DIR}"/tests
- python3 -m pip install --user jinja2
- python3 tester.py testset_travis.json
- name: "Windows build"
if: branch = windows_build
os: windows
language: shell
before_install:
- choco install python --version 3.6
- python -m pip install --upgrade pip
env: PATH=/c/Python36:/c/Python36/Scripts:$PATH
script:
- cd "${TRAVIS_BUILD_DIR}"/tests
- pip install --user jinja2
- python tester.py testset_travis.json
- name: "debug tests"
arch: arm64
os: linux
dist: bionic
group: travis_latest
language: python
python: "3.6"
addons:
apt:
packages:
- libblas-dev
- liblapack-dev
- bc
script:
- cd "${TRAVIS_BUILD_DIR}"/tests
- pip install jinja2
- python tester.py testset_debug.json