forked from IBM/chopstix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
189 lines (189 loc) · 6.76 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
---
language: cpp
version: ~> 1.0
cache:
ccache: false
directories:
- /tmp/libpfm
- /tmp/zlib
- /tmp/deb
timeout: 1000
os:
- linux
dist: bionic
compiler:
- gcc
notifications:
email:
on_success: change
on_failure: always
env:
global:
- CHOPSTIX_PERFMON_PREFIX=/tmp/libpfm
- CTEST_OUTPUT_ON_FAILURE=1
- CC=gcc-11
- CXX=g++-11
stages:
- shell_conventions
- build_and_test
- test
- install
install:
- if [ "$(ls /tmp/deb/*deb 2> /dev/null | wc -l)" -gt 0 ]; then sudo cp -n -u /tmp/deb/*deb /var/cache/apt/archives/ ; fi;
- sudo add-apt-repository -y "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu $(lsb_release -cs) main" -n
- sudo apt-get update -y --allow-insecure-repositories --allow-unauthenticated
- sudo apt-get install -y --allow-unauthenticated cmake cmake-data shellcheck linux-tools-generic zlib1g-dev g++-11 gcc-11 python3 python3-pip python3-virtualenv libsqlite3-dev
- if [ "$(ls /var/cache/apt/archives/*deb 2> /dev/null | wc -l)" -gt 0 ]; then sudo cp -n -u /var/cache/apt/archives/*deb /tmp/deb/ ; fi;
jobs:
include:
- stage: shell_conventions
name: shell conventions amd64
arch: amd64
env:
- CACHE_NAME=amd64
script:
- set -e
- shellcheck -x -s sh $(find . -name \*.sh) $(find . -name \*.sh.in) $(/bin/ls ./tools/chop-* | grep -v lib.c) ./test/drivers/* ./test/daxpy/*spec
- stage: shell_conventions
name: shell conventions ppc64le
arch: ppc64le
env:
- CACHE_NAME=ppc64le
script:
- set -e
- shellcheck -x -s sh $(find . -name \*.sh) $(find . -name \*.sh.in) $(/bin/ls ./tools/chop-* | grep -v lib.c) ./test/drivers/* ./test/daxpy/*spec
- stage: shell_conventions
name: shell conventions s390x
arch: s390x
env:
- CACHE_NAME=s390x
script:
- set -e
- shellcheck -x -s sh $(find . -name \*.sh) $(find . -name \*.sh.in) $(/bin/ls ./tools/chop-* | grep -v lib.c) ./test/drivers/* ./test/daxpy/*spec
- stage: build_and_test
name: Build and test amd64
arch: amd64
env:
- CACHE_NAME=amd64
script:
- set -e
- scripts/ci/install_libpfm.sh
- mkdir build
- cd build
- ../configure --prefix /tmp/install
- make -j 4
- make test
- pip install -U pip virtualenv
- make install
- stage: build_and_test
name: Build and test ppc64le
arch: ppc64le
env:
- CACHE_NAME=ppc64le
script:
- set -e
- scripts/ci/install_libpfm.sh
- mkdir build
- cd build
- ../configure --prefix /tmp/install
- make -j 4
- make test
- stage: build_and_test
name: Build and test s390x
arch: s390x
env:
- CACHE_NAME=s390x
script:
- set -e
- scripts/ci/install_libpfm.sh
- mkdir build
- cd build
- ../configure --prefix /tmp/install
- make -j 4
- make test
- stage: build_and_test
name: Build and test amd64 build sqlite
arch: amd64
env:
- CACHE_NAME=amd64
script:
- set -e
- scripts/ci/install_libpfm.sh
- mkdir build
- cd build
- ../configure --prefix /tmp/install --build-sqlite
- make -j 4
- make test
- pip install -U pip virtualenv
- make install
- stage: build_and_test
name: Build and test ppc64le build sqlite
arch: ppc64le
env:
- CACHE_NAME=ppc64le
script:
- set -e
- scripts/ci/install_libpfm.sh
- mkdir build
- cd build
- ../configure --prefix /tmp/install --build-sqlite
- make -j 4
- make test
- stage: build_and_test
name: Build and test s390x build sqlite
arch: s390x
env:
- CACHE_NAME=s390x
script:
- set -e
- scripts/ci/install_libpfm.sh
- mkdir build
- cd build
- ../configure --prefix /tmp/install --build-sqlite
- make -j 4
- make test
- stage: build_and_test
name: Build and test on amd64 for ppc64le
arch: amd64
before_install:
- sudo apt-get --allow-unauthenticated -y install gcc-powerpc64le-linux-gnu g++-powerpc64le-linux-gnu
env:
- CACHE_NAME=amd64-ppc64le
script:
- set -e
- CC=powerpc64le-linux-gnu-gcc ARCH=ppc scripts/ci/install_libpfm.sh
- CC=powerpc64le-linux-gnu-gcc CHOST=powerpc64le-linux-gnu scripts/ci/install_zlib.sh
- mkdir build
- cd build
- ../configure --prefix /tmp/install --enable-powerle --with-perfmon=/tmp/libpfm --with-zlib=/tmp/zlib
- make -j 4
- stage: build_and_test
name: Build and test on amd64 for s390x
arch: amd64
before_install:
- sudo apt-get --allow-unauthenticated -y install gcc-s390x-linux-gnu g++-s390x-linux-gnu
env:
- CACHE_NAME=amd64-s390x
script:
- set -e
- CC=s390x-linux-gnu-gcc ARCH=s390x scripts/ci/install_libpfm.sh
- CC=s390x-linux-gnu-gcc CHOST=s390x-linux-gnu scripts/ci/install_zlib.sh
- mkdir build
- cd build
- ../configure --prefix /tmp/install --enable-sysz --with-perfmon=/tmp/libpfm --with-zlib=/tmp/zlib
- make -j 4
- stage: build_and_test
name: Build and test on amd64 for riscv
arch: amd64
before_install:
- sudo apt-get --allow-unauthenticated -y install gcc-8-riscv64-linux-gnu gcc-riscv64-linux-gnu g++-8-riscv64-linux-gnu g++-riscv64-linux-gnu
env:
- CACHE_NAME=amd64-riscv
script:
- set -e
- CC=riscv64-linux-gnu-gcc-8 ARCH=riscv64 scripts/ci/install_libpfm.sh
- CC=riscv64-linux-gnu-gcc-8 CHOST=riscv64 scripts/ci/install_zlib.sh
- mkdir build
- cd build
- ../configure --prefix /tmp/install --enable-riscv --with-perfmon=/tmp/libpfm --with-zlib=/tmp/zlib
- make -j 4