xref: /TaskScheduler/.travis.yml (revision f5ccb3a0)
1os:
2  - linux
3  - osx
4
5osx_image: xcode7.2
6
7language:
8  - cpp
9
10compiler:
11  - gcc
12
13before_install:
14  - 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
15  - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y; fi
16  - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update; fi
17
18install:
19  - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install --force-yes make premake4; fi
20  - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install --force-yes -qq gcc-4.9 g++-4.9; fi
21  - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 90; fi
22  - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get  --force-yes -y install gcc-4.9-multilib g++-4.9-multilib; fi
23  - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install lshw; fi
24  - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install valgrind; fi
25  - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
26  - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install premake; fi
27
28script:
29  - if [ "$TRAVIS_OS_NAME" = "linux" ]; then clang --version && g++ --version && premake4 gmake && pushd Build/gmake/ && make config=release64 && popd; fi
30  - if [ "$TRAVIS_OS_NAME" = "osx" ]; then clang --version && g++ --version && premake4 gmake && pushd Build/gmake/ && make config=debug64 && popd; fi
31  - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo lshw; fi
32  - if [ "$TRAVIS_OS_NAME" = "osx" ]; then sudo system_profiler SPHardwareDataType; fi
33  - if [ "$TRAVIS_OS_NAME" = "linux" ]; then pushd Bin/ && ./TaskSchedulerTests 3 && popd; fi
34  - if [ "$TRAVIS_OS_NAME" = "osx" ]; then pushd Bin/ && ./TaskSchedulerTests 6 && popd; fi
35
36
37
38
39