-
Notifications
You must be signed in to change notification settings - Fork 61
/
.travis.yml
38 lines (28 loc) · 1.82 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
os:
- linux
- osx
osx_image: xcode7.2
language:
- cpp
compiler:
- gcc
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo bash -c "echo 'deb http://lgp203.free.fr/ubuntu quantal universe' >> /etc/apt/sources.list.d/lgp203.free.fr.source.list"; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update; fi
install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install --force-yes make premake4; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install --force-yes -qq gcc-4.9 g++-4.9; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 90; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get --force-yes -y install gcc-4.9-multilib g++-4.9-multilib; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install lshw; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install valgrind; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install premake; fi
script:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then clang --version && g++ --version && premake4 gmake && pushd Build/gmake/ && make config=release64 && popd; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then clang --version && g++ --version && premake4 gmake && pushd Build/gmake/ && make config=debug64 && popd; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo lshw; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then sudo system_profiler SPHardwareDataType; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then pushd Bin/ && ./TaskSchedulerTests 3 && popd; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then pushd Bin/ && ./TaskSchedulerTests 6 && popd; fi