Browse Source

Trying Travis with gcc again

Thomas Buck 10 years ago
parent
commit
701a97672a
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      .travis.yml

+ 9
- 1
.travis.yml View File

@@ -2,13 +2,21 @@ language: cpp
2 2
 
3 3
 compiler:
4 4
     - clang
5
+    - gcc
5 6
 
6 7
 before_install:
7
-    - sudo add-apt-repository ppa:zoogie/sdl2-snapshots
8
+    - sudo add-apt-repository -y ppa:zoogie/sdl2-snapshots
9
+    - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
8 10
     - sudo apt-get -qq -y update
9 11
 
10 12
 install:
11 13
     - sudo apt-get -qq -y install libsdl2 libsdl2-ttf libalut-dev libpng12-dev zlib1g-dev
14
+    - if [ "$CC" = "gcc" ]; then sudo apt-get install gcc-4.8; fi
15
+    - if [ "$CXX" = "g++" ]; then sudo apt-get install g++-4.8; fi
16
+
17
+before_script:
18
+    - if [ "$CC" = "gcc" ]; then export CC="gcc-4.8"; fi
19
+    - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi
12 20
 
13 21
 script:
14 22
     - (mkdir build && cd build && cmake .. && make)

Loading…
Cancel
Save