-
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added initial travis configuration taken from https://github.com/corp…
…orateshark/WCMCommander/blob/master/.travis.yml and adapted
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
language: cpp | ||
|
||
compiler: | ||
- gcc | ||
|
||
env: | ||
- BUILDMODE=cmake-mingw32 | ||
|
||
before_script: | ||
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test | ||
- sudo add-apt-repository --yes ppa:tobydox/mingw-x-precise | ||
- sudo apt-get -qq update | ||
- sudo apt-get -qq install gcc-4.8 g++-4.8 | ||
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20 | ||
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20 | ||
- sudo update-alternatives --config gcc | ||
- sudo update-alternatives --config g++ | ||
- if [ "$BUILDMODE" = "cmake-mingw32" ]; then sudo apt-get -qq install mingw64-x-gcc; fi | ||
|
||
script: | ||
- if [ "$BUILDMODE" = "cmake-mingw32" ]; then echo "===> Building with cmake+mingw32..." && | ||
cd "$TRAVIS_BUILD_DIR" && | ||
mkdir build && | ||
cd build && | ||
echo "SET(CMAKE_SYSTEM_NAME Windows)" > toolchain.cmake && | ||
echo "SET(CMAKE_C_COMPILER /opt/mingw64/bin/x86_64-w64-mingw32-gcc)" >> toolchain.cmake && | ||
echo "SET(CMAKE_CXX_COMPILER /opt/mingw64/bin/x86_64-w64-mingw32-g++)" >> toolchain.cmake && | ||
echo "SET(CMAKE_RC_COMPILER /opt/mingw64/bin/x86_64-w64-mingw32-windres)" >> toolchain.cmake && | ||
echo "SET(CMAKE_FIND_ROOT_PATH /opt/mingw64)" >> toolchain.cmake && | ||
echo "SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)" >> toolchain.cmake && | ||
echo "SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)" >> toolchain.cmake && | ||
echo "SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)" >> toolchain.cmake && | ||
cmake -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake .. && | ||
make && | ||
make install; | ||
fi |