forked from sekrit-twc/zimg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (72 loc) · 2.13 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
dist: focal
sudo: false
language: cpp
matrix:
include:
# GCC 4.9
- compiler: gcc
# GCC 4.9 no longer available in Bionic
dist: xenial
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- gcc-4.9
- g++-4.9
env:
- MY_CC: gcc-4.9
- MY_CXX: g++-4.9
# GCC 10
- compiler: gcc
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- gcc-10
- g++-10
coverity_scan:
project:
name: "sekrit-twc/zimg"
description: "Build submitted via Travis CI"
notification_email: noreply@example.com
build_command_prepend: "source .coverity-prepare.sh"
build_command: make
branch_pattern: coverity_scan
env:
- MY_CC: gcc-10
- MY_CXX: g++-10
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "ZPVIqS6exYthp6FL6XQYyzz3Y17BKUP60bMj3X6vHk0aJ3d5jOVE4OEOjEY2uOnEWQej1a1ea0kBqpvljnrDUNZZjKdG7Auv0N8Dmg1RKznyjHLbqoGPD2Yj+ooYHT8qE7thCZC8v7axoCf2sObViWtZg3AmeqAMVxHGoG3OxRU="
# Clang/LLVM 11.0 Sanitized
- compiler: clang
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-11 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- clang-11
# Needed for updated libstdc++
- g++-10
env:
- MY_CC: clang-11
- MY_CXX: clang++-11
- CFLAGS: -fsanitize=undefined -fsanitize=address
- CXXFLAGS: -fsanitize=undefined -fsanitize=address
- LSAN_OPTIONS: detect_leaks=0
# Apple Clang
- os: osx
osx_image: xcode11.6
compiler: clang
env:
- MY_CC: clang
- MY_CXX: clang++
install:
- export CC=$MY_CC
- export CXX=$MY_CXX
script:
- ./.travis-script.sh