forked from openpmix/openpmix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (45 loc) · 1.31 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
sudo: false
dist: xenial
cache:
apt: true
language: python
python:
- "3.5"
addons:
apt:
packages:
- perl
- libevent-dev
- libhwloc-dev
jobs:
fast_finish: true
include:
- compiler: gcc
env:
- CFLAGS="-Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-type-limits -Wno-missing-field-initializers -Wno-sign-compare -Wno-missing-braces"
ENABLE_WERROR="--enable-werror"
- compiler: gcc
env:
- CFLAGS="-fsanitize=undefined" # TODO: add -fsanitize=address
- compiler: clang
env:
- CFLAGS="-Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-type-limits -Wno-missing-field-initializers -Wno-sign-compare -Wno-missing-braces"
ENABLE_WERROR="--enable-werror"
# TODO:
#- compiler: clang
# env:
# - CFLAGS="-fsanitize=address"
# ASAN_OPTIONS=detect_stack_use_after_return=1:detect_leaks=1:check_initialization_order=true:strict_init_order=true:detect_stack_use_after_scope=1
- compiler: clang
env:
- CFLAGS="-fsanitize=undefined"
script:
# prepare
# build
- ./autogen.pl
- pip install -q cython
- ./configure ${ENABLE_WERROR}
- if [ $? -ne 0 ]; then cat config.log; fi
- make all
# test
- make check