Commit 04e9d1e7a0493910b2eb5e757d623870692ada04

Steffen Jaeckel 2022-02-15T13:14:40

Merge pull request #527 from libtom/replace-travis migrate from travis to GitHub actions

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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..9e4cee0
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,148 @@
+#############################################################################
+#                                                                           #
+#      GitHub Actions test-suite for LibTomMath                             #
+#      (https://github.com/libtom/libtommath.git)                           #
+#                                                                           #
+#############################################################################
+
+name: CI
+
+# Tests restricted to the following branches of LTM.
+on:
+  push:
+    branches:
+      - master
+      - develop
+      - /^release\/.*$/
+      - /^support\/.*$/
+      - /^ci\/.*$/
+  pull_request:
+    branches:
+      - master
+      - develop
+      - /^release\/.*$/
+      - /^support\/.*$/
+      - /^ci\/.*$/
+
+jobs:
+  Build:
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        os: [ ubuntu-18.04 ]
+          # The environment given to the programs in the build
+          # We have only one program and the variable $BUILDOPTIONS
+          # has only the options to that program: testme.sh
+
+        config:
+          # Check c89 <-> c99 roundtrip
+          - { BUILDOPTIONS: '--c89-c99-roundtrip',                                                                               SANITIZER: '',  COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: '' }
+          # Check source code format
+          - { BUILDOPTIONS: '--format',                                                                                          SANITIZER: '',  COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: 'astyle' }
+          # Check public symbols of dynamic libraries
+          - { BUILDOPTIONS: '--symbols',                                                                                         SANITIZER: '',  COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: 'libtool-bin' }
+          # Run always with valgrind (no sanitizer, but debug info)
+          - { BUILDOPTIONS: '--with-cc=gcc --with-m64 --with-valgrind',                                                          SANITIZER: '',  COMPILE_DEBUG: '1', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: '' }
+          # Shared library build
+          - { BUILDOPTIONS: '--with-cc=gcc --make-option=-f --make-option=makefile.shared',                                      SANITIZER: '',  COMPILE_DEBUG: '0', COMPILE_LTO: '1', CONV_WARNINGS: '',        OTHERDEPS: 'gcc-8 libtool-bin' }
+          # GCC for the 32-bit architecture (no valgrind)
+          - { BUILDOPTIONS: '--with-cc=gcc --with-m32',                                                                          SANITIZER: '',  COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: 'libc6-dev-i386 gcc-multilib' }
+          # clang for the 32-bit architecture (no valgrind)
+          - { BUILDOPTIONS: '--with-cc=clang-7 --with-m32',                                                                      SANITIZER: '',  COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: 'clang-7 llvm-7 gcc-multilib' }
+          # RSA superclass with tests (no sanitizer, but debug info)
+          - { BUILDOPTIONS: '--with-cc=gcc-5 --with-m64 --cflags=-DLTM_NOTHING --cflags=-DSC_RSA_1_WITH_TESTS --limit-valgrind', SANITIZER: '',  COMPILE_DEBUG: '1', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: 'gcc-5' }
+
+          # Test "autotuning", the automatic evaluation and setting of the Toom-Cook cut-offs.
+          #- env: SANITIZER=1 BUILDOPTIONS='--with-cc=gcc-5 --cflags=-DMP_16BIT --limit-valgrind --make-option=tune'
+          #- env: SANITIZER=1 BUILDOPTIONS='--with-cc=gcc-5 --cflags=-DMP_32BIT --limit-valgrind --make-option=tune'
+          #- env: SANITIZER=1 BUILDOPTIONS='--with-cc=gcc-5 --limit-valgrind --make-option=tune'
+          #- env: SANITIZER=1 BUILDOPTIONS='--with-cc=clang-7 --cflags=-DMP_16BIT --limit-valgrind --make-option=tune'
+          #- env: SANITIZER=1 BUILDOPTIONS='--with-cc=clang-7 --cflags=-DMP_32BIT --limit-valgrind --make-option=tune'
+          - { BUILDOPTIONS: '--with-cc=clang-7 --limit-valgrind --make-option=tune',                                             SANITIZER: '1', COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: 'clang-7 llvm-7' }
+
+          # GCC for the x86-64 architecture testing against a different Bigint-implementation
+          # with 333333 different inputs.
+          #- env: BUILDOPTIONS='--with-cc=gcc --test-vs-mtest=333333 --limit-valgrind'
+          # ...  and a better random source.
+          - { BUILDOPTIONS: '--with-cc=gcc --test-vs-mtest=333333 --mtest-real-rand --limit-valgrind',                           SANITIZER: '',  COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: '' }
+
+          # clang for the x86-64 architecture testing against a different Bigint-implementation
+          # with 333333 different inputs
+          - { BUILDOPTIONS: '--with-cc=clang-7 --test-vs-mtest=333333 --limit-valgrind',                                         SANITIZER: '',  COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: 'clang-7 llvm-7' }
+          # ...  and a better random source.
+          - { BUILDOPTIONS: '--with-cc=clang-7 --test-vs-mtest=333333 --mtest-real-rand --limit-valgrind',                       SANITIZER: '',  COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: 'clang-7 llvm-7' }
+
+          # GCC for the x64_32 architecture (32-bit longs and 32-bit pointers)
+          # TODO: Probably not possible to run anything in x32 in GH actions
+          #       but needs to be checked to be sure.
+          - { BUILDOPTIONS: '--with-cc=gcc --with-mx32',                                                                         SANITIZER: '1', COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: 'libc6-dev-x32 gcc-multilib' }
+
+          # GCC for the x86-64 architecture (64-bit longs and 64-bit pointers)
+          - { BUILDOPTIONS: '--with-cc=gcc --with-m64 --limit-valgrind',                                                         SANITIZER: '1', COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: '' }
+          - { BUILDOPTIONS: '--with-cc=gcc-5 --with-m64 --limit-valgrind',                                                       SANITIZER: '',  COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: 'gcc-5' }
+          - { BUILDOPTIONS: '--with-cc=gcc-4.8 --with-m64 --limit-valgrind',                                                     SANITIZER: '',  COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: 'gcc-4.8' }
+
+          # clang for x86-64 architecture (64-bit longs and 64-bit pointers)
+          - { BUILDOPTIONS: '--with-cc=clang-7 --with-m64 --limit-valgrind',                                                     SANITIZER: '1', COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: 'relaxed', OTHERDEPS: 'clang-7 llvm-7' }
+          - { BUILDOPTIONS: '--with-cc=clang-7 --with-m64 --limit-valgrind',                                                     SANITIZER: '1', COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: 'strict',  OTHERDEPS: 'clang-7 llvm-7' }
+          - { BUILDOPTIONS: '--with-cc=clang-7 --cflags=-DMP_USE_MEMOPS --with-m64 --limit-valgrind',                            SANITIZER: '1', COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: 'strict',  OTHERDEPS: 'clang-7 llvm-7' }
+          - { BUILDOPTIONS: '--with-cc=clang-7 --c89 --with-m64 --limit-valgrind',                                               SANITIZER: '1', COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: 'strict',  OTHERDEPS: 'clang-7 llvm-7' }
+          - { BUILDOPTIONS: '--with-cc=clang-7 --with-m64 --limit-valgrind --cflags=-DMP_PREC=MP_MIN_PREC',                      SANITIZER: '1', COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: 'clang-7 llvm-7' }
+          - { BUILDOPTIONS: '--with-cc=clang-10 --with-m64 --limit-valgrind',                                                    SANITIZER: '1', COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: 'clang-10 llvm-10' }
+          - { BUILDOPTIONS: '--with-cc=clang-9 --with-m64 --limit-valgrind',                                                     SANITIZER: '1', COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: 'clang-9 llvm-9' }
+          - { BUILDOPTIONS: '--with-cc=clang-8 --with-m64 --limit-valgrind',                                                     SANITIZER: '1', COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: 'clang-8 llvm-8' }
+          - { BUILDOPTIONS: '--with-cc=clang-6.0 --with-m64 --limit-valgrind',                                                   SANITIZER: '1', COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: 'clang-6.0 llvm-6.0' }
+          - { BUILDOPTIONS: '--with-cc=clang-5.0 --with-m64 --limit-valgrind',                                                   SANITIZER: '1', COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: 'clang-5.0 llvm-5.0' }
+          - { BUILDOPTIONS: '--with-cc=clang-4.0 --with-m64 --limit-valgrind',                                                   SANITIZER: '',  COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: 'clang-4.0 llvm-4.0' }
+          # Link time optimization
+          - { BUILDOPTIONS: '--with-cc=gcc --with-m64 --limit-valgrind',                                                         SANITIZER: '1', COMPILE_DEBUG: '0', COMPILE_LTO: '1', CONV_WARNINGS: '',        OTHERDEPS: '' }
+          #- { BUILDOPTIONS: '--with-cc=clang-7 --with-m64 --limit-valgrind',                                                     SANITIZER: '1', COMPILE_DEBUG: '0', COMPILE_LTO: '1', CONV_WARNINGS: '',        OTHERDEPS: '' }
+
+          # GCC for the x86-64 architecture with restricted limb sizes
+          # formerly started with the option "--with-low-mp" to testme.sh
+          # but testing all three in one run took to long and timed out.
+          - { BUILDOPTIONS: '--with-cc=gcc --cflags=-DMP_16BIT --limit-valgrind',                                                SANITIZER: '1', COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: '' }
+          - { BUILDOPTIONS: '--with-cc=gcc --cflags=-DMP_32BIT --limit-valgrind',                                                SANITIZER: '1', COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: '' }
+          # clang for the x86-64 architecture with restricted limb sizes
+          - { BUILDOPTIONS: '--with-cc=clang --cflags=-DMP_16BIT --limit-valgrind',                                              SANITIZER: '1', COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: 'clang llvm' }
+          - { BUILDOPTIONS: '--with-cc=clang --cflags=-DMP_32BIT --limit-valgrind',                                              SANITIZER: '1', COMPILE_DEBUG: '0', COMPILE_LTO: '0', CONV_WARNINGS: '',        OTHERDEPS: 'clang llvm' }
+    steps:
+      - uses: actions/checkout@v2
+      - name: install dependencies
+        run: |
+          sudo apt-get update -qq
+          sudo apt-get install -y valgrind ${{ matrix.config.OTHERDEPS }}
+          sudo apt-cache search gcc | grep '^gcc-[0-9\.]* '
+          sudo apt-cache search clang | grep compiler
+      - name: run tests
+        env:
+          SANITIZER: ${{ matrix.config.SANITIZER }}
+          COMPILE_DEBUG: ${{ matrix.config.COMPILE_DEBUG }}
+          COMPILE_LTO: ${{ matrix.config.COMPILE_LTO }}
+          CONV_WARNINGS: ${{ matrix.config.CONV_WARNINGS }}
+          COMMIT_MESSAGE: ${{ github.event.commits[0].message }}
+          PR_NUMBER: ${{ github.event.number }}
+      # The actual script the jobs run.
+        run: |
+          ./testme.sh ${{ matrix.config.BUILDOPTIONS }}
+      # In case of a CI error a success might get signaled
+      # even without any test run. This file also keeps any notes
+      # printed from the tests which might come handy from time
+      # to time.
+      # Valgrid will print its output to stderr which will not show up
+      # in test_*.log. testme.sh accepts one additional option to
+      # valgrind and "--valgrind-options=--log-fd=1" sends the output
+      # of Valgrind to stdout instead.
+      - name: regular logs
+        if: ${{ !failure() }}
+        run: |
+          cat test_*.log || true
+      # Compilation failures are in gcc_errors_*.log
+      # Failed tests in test_*.log
+      # Files do not exist in case of success
+      - name: error logs
+        if: ${{ failure() }}
+        run: |
+          cat test_*.log || true
+          cat valgrind_test.log || true
+          cat gcc_errors_*.log || true
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index b97912e..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,217 +0,0 @@
-#############################################################################
-#                                                                           #
-#      Travis-ci test-suite for LibTomMath                                  #
-#      (https://github.com/libtom/libtommath.git)                           #
-#                                                                           #
-#############################################################################
-
-# The Ubuntu version we're going to use to run the tests
-dist: bionic
-
-# Compilation failures are in gcc_errors_*.log
-# Failed tests in test_*.log
-# Files do not exist in case of success
-after_failure:
-  - cat test_*.log
-  - cat valgrind_test.log
-  - cat gcc_errors_*.log
-
-# In case of a Travis error a success might get signaled
-# even without any test run. This file also keeps any notes
-# printed from the tests which might come handy from time
-# to time.
-# Valgrid will print its output to stderr which will not show up
-# in test_*.log. testme.sh accepts one additional option to
-# valgrind and "--valgrind-options=--log-fd=1" sends the output
-# of Valgrind to stdout instead.
-after_success:
-  - cat test_*.log
-
-# Tests restricted to the following branches of LTM.
-branches:
-  only:
-    - master
-    - develop
-    - /^release/
-    - /^support/
-    - /^travis/
-
-# Additional installs: Valgrind for memory tests.
-install:
-  - sudo apt-get update -qq
-  - sudo apt-get install valgrind
-  - apt-cache search gcc | grep '^gcc-[0-9\.]* '
-  - apt-cache search clang | grep compiler
-
-# The language is C and it will load the respective dependencies
-language: c
-
-# The actual workspace. Will run the individual jobs in parallel
-# which also means that the jobs must be able to run in parallel.
-# Either specify sets which will be combined or, as in this case,
-# specify all builds individually. The number of jobs is currently
-# restricted to 200 jobs at most.
-matrix:
-  # Will mark as finished if all of the remaining tests are allowed to fail
-  # or one test has failed already.
-  fast_finish: true
-
-  # The individual jobs
-  include:
-    # The environment given to the programs in the build
-    # We have only one program and the variable $BUILDOPTIONS
-    # has only the options to that program: testme.sh
-
-    # Check c89 <-> c99 roundtrip
-    - env: BUILDOPTIONS='--c89-c99-roundtrip'
-
-    # Check source code format
-    - env: BUILDOPTIONS='--format'
-      addons:
-        apt:
-          packages:
-            - astyle
-
-    # Check public symbols of dynamic libraries
-    - env: BUILDOPTIONS='--symbols'
-      addons:
-        apt:
-          packages:
-            - libtool-bin
-
-    # Run always with valgrind (no sanitizer, but debug info)
-    - env: COMPILE_DEBUG=1 BUILDOPTIONS='--with-cc=gcc --with-m64 --with-valgrind'
-
-    # Shared library build
-    - env: COMPILE_LTO=1 BUILDOPTIONS='--with-cc=gcc --make-option=-f --make-option=makefile.shared'
-      addons:
-        apt:
-          packages:
-            - gcc-8
-            - libtool-bin
-
-    # GCC for the 32-bit architecture (no valgrind)
-    - env: BUILDOPTIONS='--with-cc=gcc --with-m32'
-      addons:
-        apt:
-          packages:
-            - libc6-dev-i386
-            - gcc-multilib
-
-    # clang for the 32-bit architecture (no valgrind)
-    - env: BUILDOPTIONS='--with-cc=clang-7 --with-m32'
-      addons:
-        apt:
-          packages:
-            - libc6-dev-i386
-            - gcc-multilib
-
-    # RSA superclass with tests (no sanitizer, but debug info)
-    - env: COMPILE_DEBUG=1 BUILDOPTIONS='--with-cc=gcc-5 --with-m64 --cflags=-DLTM_NOTHING --cflags=-DSC_RSA_1_WITH_TESTS --with-travis-valgrind'
-
-    # Test "autotuning", the automatic evaluation and setting of the Toom-Cook cut-offs.
-    #- env: SANITIZER=1 BUILDOPTIONS='--with-cc=gcc-5 --cflags=-DMP_16BIT --with-travis-valgrind --make-option=tune'
-    #- env: SANITIZER=1 BUILDOPTIONS='--with-cc=gcc-5 --cflags=-DMP_32BIT --with-travis-valgrind --make-option=tune'
-    #- env: SANITIZER=1 BUILDOPTIONS='--with-cc=gcc-5 --with-travis-valgrind --make-option=tune'
-    #- env: SANITIZER=1 BUILDOPTIONS='--with-cc=clang-7 --cflags=-DMP_16BIT --with-travis-valgrind --make-option=tune'
-    #- env: SANITIZER=1 BUILDOPTIONS='--with-cc=clang-7 --cflags=-DMP_32BIT --with-travis-valgrind --make-option=tune'
-    - env: SANITIZER=1 BUILDOPTIONS='--with-cc=clang-7 --with-travis-valgrind --make-option=tune'
-
-    # GCC for the x86-64 architecture testing against a different Bigint-implementation
-    # with 333333 different inputs.
-    #- env: BUILDOPTIONS='--with-cc=gcc --test-vs-mtest=333333 --with-travis-valgrind'
-    # ...  and a better random source.
-    - env: BUILDOPTIONS='--with-cc=gcc --test-vs-mtest=333333 --mtest-real-rand --with-travis-valgrind'
-
-    # clang for the x86-64 architecture testing against a different Bigint-implementation
-    # with 333333 different inputs
-    - env: BUILDOPTIONS='--with-cc=clang-7 --test-vs-mtest=333333 --with-travis-valgrind'
-    # ...  and a better random source.
-    #- env: BUILDOPTIONS='--with-cc=clang-7 --test-vs-mtest=333333 --mtest-real-rand --with-travis-valgrind'
-
-    # GCC for the x64_32 architecture (32-bit longs and 32-bit pointers)
-    # TODO: Probably not possible to run anything in x32 in Travis
-    #       but needs to be checked to be sure.
-    - env: SANITIZER=1 BUILDOPTIONS='--with-cc=gcc --with-mx32'
-      addons:
-        apt:
-          packages:
-            - libc6-dev-x32
-            - gcc-multilib
-
-    # GCC for the x86-64 architecture (64-bit longs and 64-bit pointers)
-    - env: SANITIZER=1 BUILDOPTIONS='--with-cc=gcc --with-m64 --with-travis-valgrind'
-    - env: BUILDOPTIONS='--with-cc=gcc-5 --with-m64 --with-travis-valgrind'
-      addons:
-        apt:
-          packages:
-            - gcc-5
-    - env: BUILDOPTIONS='--with-cc=gcc-4.8 --with-m64 --with-travis-valgrind'
-      addons:
-        apt:
-          packages:
-            - gcc-4.8
-
-    # clang for x86-64 architecture (64-bit longs and 64-bit pointers)
-    - env: SANITIZER=1 CONV_WARNINGS=relaxed BUILDOPTIONS='--with-cc=clang-7 --with-m64 --with-travis-valgrind'
-    - env: SANITIZER=1 CONV_WARNINGS=strict BUILDOPTIONS='--with-cc=clang-7 --with-m64 --with-travis-valgrind'
-    - env: SANITIZER=1 CONV_WARNINGS=strict BUILDOPTIONS='--with-cc=clang-7 --cflags=-DMP_USE_MEMOPS --with-m64 --with-travis-valgrind'
-    - env: SANITIZER=1 CONV_WARNINGS=strict BUILDOPTIONS='--with-cc=clang-7 --c89 --with-m64 --with-travis-valgrind'
-    - env: SANITIZER=1 BUILDOPTIONS='--with-cc=clang-7 --with-m64 --with-travis-valgrind --cflags=-DMP_PREC=MP_MIN_PREC'
-    - env: SANITIZER=1 BUILDOPTIONS='--with-cc=clang-10 --with-m64 --with-travis-valgrind'
-      addons:
-        apt:
-          packages:
-            - clang-10
-    - env: SANITIZER=1 BUILDOPTIONS='--with-cc=clang-9 --with-m64 --with-travis-valgrind'
-      addons:
-        apt:
-          packages:
-            - clang-9
-    - env: SANITIZER=1 BUILDOPTIONS='--with-cc=clang-8 --with-m64 --with-travis-valgrind'
-      addons:
-        apt:
-          packages:
-            - clang-8
-    - env: SANITIZER=1 BUILDOPTIONS='--with-cc=clang-6.0 --with-m64 --with-travis-valgrind'
-      addons:
-        apt:
-          packages:
-            - clang-6.0
-    - env: SANITIZER=1 BUILDOPTIONS='--with-cc=clang-5.0 --with-m64 --with-travis-valgrind'
-      addons:
-        apt:
-          packages:
-            - clang-5.0
-    - env: BUILDOPTIONS='--with-cc=clang-4.0 --with-m64 --with-travis-valgrind'
-      addons:
-        apt:
-          packages:
-            - clang-4.0
-
-    # Link time optimization
-    - env: SANITIZER=1 COMPILE_LTO=1 BUILDOPTIONS='--with-cc=gcc --with-m64 --with-travis-valgrind'
-    #- env: SANITIZER=1 COMPILE_LTO=1 BUILDOPTIONS='--with-cc=clang-7 --with-m64 --with-travis-valgrind'
-
-    # GCC for the x86-64 architecture with restricted limb sizes
-    # formerly started with the option "--with-low-mp" to testme.sh
-    # but testing all three in one run took to long and timed out.
-    - env: SANITIZER=1 BUILDOPTIONS='--with-cc=gcc --cflags=-DMP_16BIT --with-travis-valgrind'
-    - env: SANITIZER=1 BUILDOPTIONS='--with-cc=gcc --cflags=-DMP_32BIT --with-travis-valgrind'
-
-    # clang for the x86-64 architecture with restricted limb sizes
-    - env: SANITIZER=1 BUILDOPTIONS='--with-cc=clang --cflags=-DMP_16BIT --with-travis-valgrind'
-    - env: SANITIZER=1 BUILDOPTIONS='--with-cc=clang --cflags=-DMP_32BIT --with-travis-valgrind'
-
-# Notifications go to
-# An email address is also possible.
-notifications:
-  irc: "chat.freenode.net#libtom-notifications"
-
-# The actual script the jobs run.
-# Because of a default timeout of 10 minutes it was necessary to use
-# a Travis tool to extend that timeout to 40 minutes. 50 minutes
-# seem to be the max and 20 the default if travis_wait is called without
-# any options.
-script:
-  - ./testme.sh ${BUILDOPTIONS}
diff --git a/makefile_include.mk b/makefile_include.mk
index 9a152d7..0d17cec 100644
--- a/makefile_include.mk
+++ b/makefile_include.mk
@@ -48,7 +48,7 @@ endif
 
 LTM_CFLAGS += -I./ -Wall -Wsign-compare -Wextra -Wshadow
 
-ifdef SANITIZER
+ifneq (,$(SANITIZER))
 LTM_CFLAGS += -fsanitize=undefined -fno-sanitize-recover=all -fno-sanitize=float-divide-by-zero
 endif
 
diff --git a/testme.sh b/testme.sh
index 9ff242a..80f967a 100755
--- a/testme.sh
+++ b/testme.sh
@@ -62,7 +62,7 @@ All other options will be tested with all MP_xBIT configurations.
     --with-valgrind
     --with-valgrind=*       Run in valgrind (slow!).
 
-    --with-travis-valgrind  Run with valgrind on Travis on specific branches.
+    --limit-valgrind        Run with valgrind on CI only on specific branches.
 
     --valgrind-options      Additional Valgrind options
                             Some of the options like e.g.:
@@ -246,8 +246,8 @@ do
       fi
       start_alive_printing
     ;;
-    --with-travis-valgrind*)
-      if [[ ("$TRAVIS_BRANCH" == "develop" && "$TRAVIS_PULL_REQUEST" == "false") || "$TRAVIS_BRANCH" == *"valgrind"* || "$TRAVIS_COMMIT_MESSAGE" == *"valgrind"* ]]
+    --limit-valgrind*)
+      if [[ ("$GITHUB_BASE_REF" == "develop" && "$PR_NUMBER" == "") || "$GITHUB_REF_NAME" == *"valgrind"* || "$COMMIT_MESSAGE" == *"valgrind"* ]]
       then
         if [[ ${1#*d} != "" ]]
         then