-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (31 loc) · 1.06 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
before_install:
- "eval \"${MATRIX_EVAL}\""
language: cpp
matrix:
include:
-
env:
- "MATRIX_EVAL=\"TESTENV=lint && STYLE=LLVM\""
os: osx
script:
- "find . -name *.h -exec bash -c 'cmp <(clang-format --style=LLVM $0) $0' {} \\;"
- "find . -name *.hpp -exec bash -c 'cmp <(clang-format --style=LLVM $0) $0' {} \\;"
- "find . -name *.c -exec bash -c 'cmp <(clang-format --style=LLVM $0) $0' {} \\;"
- "find . -name *.cpp -exec bash -c 'cmp <(clang-format --style=LLVM $0) $0' {} \\;"
-
before_install:
- "sudo apt-get update"
- "sudo apt-get install -y g++ make libegl1-mesa-dev libgles2-mesa-dev libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev"
env:
- "MATRIX_EVAL=\"TESTENV=build && CC=gcc && CXX=g++\""
os: linux
script:
- make
-
before_install:
- "brew install sdl2 sdl2_image sdl2_ttf"
env:
- "MATRIX_EVAL=\"TESTENV=build && brew install gcc && CC=gcc-7 && CXX=g++-7\""
os: osx
script:
- make