forked from sekrit-twc/zimg
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
74 lines (72 loc) · 2.12 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 5
- compiler: gcc
# GCC 5 no longer available in Bionic
dist: xenial
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- gcc-5
- g++-5
env:
- MY_CC: gcc-5
- MY_CXX: g++-5
# GCC 11
- compiler: gcc
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- gcc-11
- g++-11
coverity_scan:
project:
name: "sekrit-twc/zimg"
description: "Build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: "source .coverity-prepare.sh"
build_command: make
branch_pattern: coverity_scan
env:
- MY_CC: gcc-11
- MY_CXX: g++-11
# 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 12.0 Sanitized
- compiler: clang
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- clang-12
# Needed for updated libstdc++
- g++-11
env:
- MY_CC: clang-12
- MY_CXX: clang++-12
- CFLAGS: -fsanitize=undefined -fsanitize=address
- CXXFLAGS: -fsanitize=undefined -fsanitize=address
- LSAN_OPTIONS: detect_leaks=0
# Apple Clang
- os: osx
osx_image: xcode12.5
compiler: clang
env:
- MY_CC: clang
- MY_CXX: clang++
install:
- export CC=$MY_CC
- export CXX=$MY_CXX
script:
- ./.travis-script.sh