-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (54 loc) · 1.61 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
sudo: required
language: c++
matrix:
include:
# Linux GCC
- os: linux
name: "GCC"
dist: xenial
compiler: g++
cache: apt
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
- sourceline: 'ppa:jonathonf/development-tools'
packages:
- gcc-8
- g++-8
- libtbb-dev
- libharfbuzz-bin
- libharfbuzz-dev
- libxrandr-dev
- libxi-dev
- libxinerama-dev
- libxcursor-dev
- libgl1-mesa-dev
- libglu1-mesa-dev
- cppcheck
- python3
env:
- MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
script:
- ./run-clang-format.py -r Source
- /usr/bin/cppcheck --quiet --enable=all --std=c++14 --language=c++ --error-exitcode=1 --inline-suppr --force --suppressions-list=./CI/datpak/Tools/Cppcheck/suppress.conf main.cpp Source/*
- cmake --build .
# OSX Clang
- os: osx
name: "Clang"
osx_image: xcode10.2
compiler: clang
env:
- HOMEBREW_NO_AUTO_UPDATE=1
- MATRIX_EVAL="brew tap oclint/formulae && brew install git-lfs oclint"
script:
- cmake --build .
- oclint-json-compilation-database -e Libs -e _deps
before_install:
- eval "${MATRIX_EVAL}"
before_script:
- git lfs install && git lfs pull && git lfs fetch
- wget https://raw.githubusercontent.com/Sarcasm/run-clang-format/master/run-clang-format.py
- chmod +x run-clang-format.py
- cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON CMakeLists.txt