-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (47 loc) · 1.16 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
language: cpp
matrix:
include:
- os: osx
name: 🍏 Clang
compiler: clang
env:
- ASAN_OPTIONS=detect_leaks=1
- CXXFLAGS=-Werror
- os: osx
osx_image: xcode9.2
name: 🍏 GCC
compiler: gcc
env:
- CXXFLAGS=-Werror
before_install:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
if [[ "$CC" == "gcc" ]]; then
brew install gcc
brew link --overwrite gcc
version=$(brew info gcc | head -n1 | sed -E 's/[^0-9]*([0-9]+)\..*/\1/')
export CC="gcc-$version"
export CXX="g++-$version"
else
brew install llvm
export CC=/usr/local/opt/llvm/bin/clang
export CXX=/usr/local/opt/llvm/bin/clang++
fi
brew install bison
brew install fish
brew install spdlog
brew install elektra
brew install ninja
brew cask install oclint
fi
before_script:
- mkdir -p Build
- cd Build
- cmake -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
- cd ..
script:
- ninja -C Build
- >
oclint -p Build -no-analytics -enable-global-analysis
-enable-clang-static-analyzer Source/*.cpp
- Test/test.fish