forked from liblouis/liblouis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
82 lines (70 loc) · 2.63 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
# define liblouis so that Travis CI service can build and test it
# require Trusty so we have a modern version of texinfo (> 5.0) and
# automake (> 1.14)
sudo: required
dist: trusty
# the check-format test seems to fail with clang-format 5.0, so for
# now stay with the older version of clang and hence the whole trusty
# image
group: deprecated-2017Q4
language: c
services:
- docker
env:
global:
# COVERITY_SCAN_TOKEN
- secure: "k2AM90pXF/IqX8CRSUPD3dkMktu9IUtFafDVvA1iC4p7hMfwOM4UIC/0E5Dqxwv4ULc7yqbWVchZwHMqteEqcJX8xbxsGqt4s1LtNosV2xjikbGmXVl3cp0qqv3exVcUaxtzxDs2Ee379sTUpVDK314M9oH5ky4N2L+971c1v84="
# GITHUB_TOKEN
- secure: "FbDvOO7Nqih9z0S+9RL/cvz/VTM5nlEUgJdUT7MefFjIAh+YCfv5sw6FkQpaiOx4xkd63tLrUvjJXi7fy4oERLDO2Qk4OOsntJUfNZqWlsGHZWUTfvgYkcNyNhXe2P4lKnnFaZbqui9Ec9OdnsR1DmrtIoq24BKTxYXCsxdux04="
matrix:
include:
- compiler: gcc
env: MODE=build-gcc
- compiler: gcc
env: MODE=build-gcc ENABLE_UCS4=--enable-ucs4
- compiler: i586-mingw32msvc-gcc
env: MODE=build-mingw
- compiler: gcc
env: MODE=build-js
- env: MODE=check-format
before_install:
- sudo apt-get update -qq
- 'chmod +x ./.travis/before_install/*.sh'
- 'chmod +x ./.travis/script/*.sh'
- 'chmod +x ./.travis/after_success/*.sh'
- case "$MODE" in
build-mingw) source .travis/before_install/mingw.sh ;;
build-js) source .travis/before_install/emscripten.sh ;;
build-gcc) source .travis/before_install/gcc.sh ;;
check-format) sudo apt-get install -y clang-format-3.9 ;;
esac
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
script:
- cd $TRAVIS_BUILD_DIR
- case "$MODE" in
build-mingw) source .travis/script/mingw.sh ;;
build-js) source .travis/script/emscripten.sh ;;
build-gcc) source .travis/script/gcc.sh ;;
check-format) source .travis/script/check-format.sh ;;
esac
after_failure:
- case "$MODE" in
build-mingw|build-gcc) cat tests/test-suite.log ;;
esac
after_success:
- case "$MODE" in
build-mingw) source .travis/after_success/mingw.sh ;;
build-js) source .travis/after_success/emscripten.sh ;;
esac
# tell the irc channel about the results of the build
notifications:
irc: "irc.oftc.net#liblouis"
addons:
coverity_scan:
project:
name: "liblouis/liblouis"
description: "Build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: "./autogen.sh && ./configure && make clean"
build_command: "make"
branch_pattern: coverity_scan