-
Notifications
You must be signed in to change notification settings - Fork 99
/
.travis.yml
69 lines (63 loc) · 1.49 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
language: cpp
sudo: required
dist: trusty
addons:
apt:
sources:
- llvm-toolchain-trusty-4.0
- sourceline: 'ppa:ubuntu-elisp/ppa'
packages:
- libclang-dev
- emacs
- emacs-snapshot
- clang-tidy-4.0
compiler:
- gcc
- clang
env:
- EMACS=emacs
- EMACS=emacs-snapshot
matrix:
include:
- addons:
apt:
sources:
- llvm-toolchain-trusty-4.0
packages:
- emacs
- clang-4.0
- libclang-4.0-dev
- clang-format-4.0
- clang-tidy-4.0
- realpath
script:
- mkdir build
- cd build
- |
cmake -DCMAKE_C_COMPILER=clang-4.0 -DCMAKE_CXX_COMPILER=clang++-4.0 \
-DCMAKE_CXX_FLAGS="-Wall -Wextra -Werror" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
../server
- make -k
- make check
- |
../server/build-aux/run-clang-tidy/run-clang-tidy.py \
-clang-tidy-binary clang-tidy-4.0 \
-clang-apply-replacements-binary clang-apply-replacements-4.0 \
-p . \
-header-filter $(realpath ../server) \
-warnings-as-errors='*'
script:
- mkdir build
- cd build
- $EMACS --version
- |
cmake \
-DEMACS_EXECUTABLE=$(which $EMACS) \
-DCMAKE_CXX_FLAGS="-Wall -Wextra -Werror" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
../server
- make -k
- make check