Skip to content

Commit fe7973f

Browse files
adding clang builds
1 parent 7a9dc44 commit fe7973f

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.travis.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@ cache: ccache
44

55
addons:
66
apt:
7-
update: true
7+
sources:
8+
- sourceline: "ppa:ubuntu-toolchain-r/test"
9+
- sourceline: "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main"
10+
key_url: "https://apt.llvm.org/llvm-snapshot.gpg.key"
811
packages:
12+
- clang-9
13+
- clang-tidy-9
14+
- clang-format-9
15+
- g++-9
916
- libboost-all-dev
1017
- libglfw3-dev
1118
- libglew-dev
@@ -14,6 +21,16 @@ addons:
1421
- xorg-dev # needed by glfw3
1522
- libglu1-mesa-dev # needed by glfw3
1623

24+
compiler:
25+
- gcc
26+
- clang
27+
28+
install:
29+
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 100
30+
- sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-9 100
31+
- sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-9 100
32+
- sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-9 100
33+
1734
script:
1835
- mkdir build
1936
- cd build

0 commit comments

Comments
 (0)