summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2015-12-24 10:43:31 +0100
committerRémi Verschelde <remi@verschelde.fr>2015-12-24 10:43:31 +0100
commitdfd7bdb00528eb9a45e21a5c99d0e76bd642e74c (patch)
tree94d10772a0ff4694cf8c56f5b917a49c95c78de9 /.travis.yml
parent0a8d20c8f795e4e5677d5cb3fd3e7f076932ead9 (diff)
parent6055a67cb8b5d53aa4ac0654b6c8ed48e1e5edb9 (diff)
Merge pull request #3120 from Marqin/master
.travis.yml upgrade
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml58
1 files changed, 46 insertions, 12 deletions
diff --git a/.travis.yml b/.travis.yml
index 6dd21dae0b..13f91b99e8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,14 +1,48 @@
language: cpp
-compiler:
+
+sudo: required
+dist: trusty
+
+compiler:
- gcc
-before_install:
-
-
-before_script:
- - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- - sudo apt-get update -qq
- - sudo apt-get install -qq scons pkg-config libx11-dev libxcursor-dev build-essential libasound2-dev libfreetype6-dev libgl1-mesa-dev libglu-dev
- - if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
- - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
-
-script: scons platform=x11
+ - clang
+
+os:
+ - linux
+ - osx
+
+env:
+ - GODOT_TARGET=iphone
+ - GODOT_TARGET=osx
+ - GODOT_TARGET=x11
+ - GODOT_TARGET=android
+ - GODOT_TARGET=windows
+
+matrix:
+ exclude:
+ - os: linux
+ env: GODOT_TARGET=iphone
+ - os: linux
+ env: GODOT_TARGET=osx
+ - os: linux
+ env: GODOT_TARGET=android
+ - os: osx
+ env: GODOT_TARGET=x11
+ - os: osx
+ env: GODOT_TARGET=windows
+ - compiler: gcc
+ env: GODOT_TARGET=iphone
+ - compiler: clang
+ env: GODOT_TARGET=android
+ - compiler: clang
+ env: GODOT_TARGET=windows
+
+
+before_script:
+ - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq; sudo apt-get install -y scons pkg-config libx11-dev libxcursor-dev build-essential libasound2-dev libfreetype6-dev libgl1-mesa-dev libglu-dev libssl-dev libxinerama-dev libevdev-dev libudev-dev; fi
+ - if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$GODOT_TARGET" = "windows" ]; then sudo apt-get update -qq; sudo apt-get install -y mingw32 mingw-w64; fi
+ - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; brew install scons; fi
+ - if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$GODOT_TARGET" = "android" ]; then brew update; brew install android-sdk android-ndk; export ANDROID_HOME=/usr/local/opt/android-sdk; export ANDROID_NDK_ROOT=/usr/local/opt/android-ndk; fi
+
+script:
+ - scons platform=$GODOT_TARGET CXX=$CXX