Add .travis.windows.yml
This commit is contained in:
parent
37bd56b5de
commit
daf7cd093d
3 changed files with 15 additions and 12 deletions
|
@ -9,23 +9,26 @@ env:
|
||||||
- CMAKE_CXX_COMPILER=g++ CMAKE_BUILD_TYPE=DEBUG
|
- CMAKE_CXX_COMPILER=g++ CMAKE_BUILD_TYPE=DEBUG
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# - sudo add-apt-repository --yes ppa:ubuntu-wine/ppa; do echo retry; done
|
- sudo add-apt-repository --yes ppa:purplekarrot/cmake
|
||||||
# - sudo sh -c "echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections"
|
- sudo apt-get -qq update
|
||||||
# - sudo apt-get -qq update
|
|
||||||
# - sudo apt-get -qq install wine-1.6
|
|
||||||
- sudo apt-get -qq install cmake make
|
- sudo apt-get -qq install cmake make
|
||||||
- if [[ $DROPBOX == TRUE ]]; then
|
- if [[ $DROPBOX == TRUE ]]; then
|
||||||
sudo apt-get -qq install python python-pip;
|
sudo apt-get -qq install python python-pip;
|
||||||
sudo pip install dropbox;
|
sudo pip install dropbox;
|
||||||
fi
|
fi
|
||||||
- wget http://dl.dropboxusercontent.com/u/203889738/gcc/mxe-gcc-4.8.1.tar.bz2 -O /tmp/gcc.tar.bz2;
|
- mkdir -p /tmp/mxe
|
||||||
- tar xvfj /tmp/gcc.tar.gz2
|
- cd /tmp/mxe
|
||||||
|
- wget http://dl.dropboxusercontent.com/u/203889738/gcc/mxe-gcc-4.8.1.tar.bz2
|
||||||
|
- tar xfj mxe-gcc-4.8.1.tar.bz2
|
||||||
|
- cd -
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- mkdir -p build
|
- mkdir -p build
|
||||||
|
- LEAN_ROOT=`pwd`
|
||||||
- cd build
|
- cd build
|
||||||
- cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} ../src -DCMAKE_TOOLCHAIN_FILE=../usr/x86_64-w64-mingw32/share/cmake/mxe-conf.cmake
|
- cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} ../src -DCMAKE_TOOLCHAIN_FILE=/tmp/mxe/usr/x86_64-w64-mingw32/share/cmake/mxe-conf.cmake
|
||||||
- make
|
- make
|
||||||
|
- cd ..
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
- if [[ $UPLOAD ]]; then
|
- if [[ $UPLOAD ]]; then
|
||||||
|
@ -39,6 +42,6 @@ after_script:
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
recipients:
|
recipients:
|
||||||
- soonho.kong@gmail.com
|
- leansmt-dev@googlegroups.com
|
||||||
on_success: always
|
on_success: always
|
||||||
on_failure: always
|
on_failure: always
|
||||||
|
|
|
@ -17,7 +17,7 @@ env:
|
||||||
DROPBOX=TRUE
|
DROPBOX=TRUE
|
||||||
TRIGGER_BB=TRUE
|
TRIGGER_BB=TRUE
|
||||||
TRIGGER_OSX=TRUE
|
TRIGGER_OSX=TRUE
|
||||||
TRIGGER_WIN=TRUE
|
TRIGGER_WINDOWS=TRUE
|
||||||
- CMAKE_CXX_COMPILER=g++-4.8
|
- CMAKE_CXX_COMPILER=g++-4.8
|
||||||
CMAKE_BUILD_TYPE=DOXYGEN
|
CMAKE_BUILD_TYPE=DOXYGEN
|
||||||
BUILD_DOXYGEN=TRUE
|
BUILD_DOXYGEN=TRUE
|
||||||
|
@ -98,7 +98,7 @@ after_script:
|
||||||
mv /tmp/.travis.temp.yml .travis.yml;
|
mv /tmp/.travis.temp.yml .travis.yml;
|
||||||
git reset --hard HEAD~;
|
git reset --hard HEAD~;
|
||||||
fi
|
fi
|
||||||
- if [[ $TRIGGER_WIN == TRUE ]]; then
|
- if [[ $TRIGGER_WINDOWS == TRUE ]]; then
|
||||||
MSG=`git log --pretty=oneline --abbrev-commit -n 1 | cut -d ' ' -f 2-`;
|
MSG=`git log --pretty=oneline --abbrev-commit -n 1 | cut -d ' ' -f 2-`;
|
||||||
cp .travis.yml /tmp/.travis.temp.yml;
|
cp .travis.yml /tmp/.travis.temp.yml;
|
||||||
cp .travis.windows.yml .travis.yml;
|
cp .travis.windows.yml .travis.yml;
|
||||||
|
@ -106,7 +106,7 @@ after_script:
|
||||||
git config --global user.name "Travis CI";
|
git config --global user.name "Travis CI";
|
||||||
git add .travis.yml;
|
git add .travis.yml;
|
||||||
git commit -m "$MSG";
|
git commit -m "$MSG";
|
||||||
git push -q https://soonhokong:${GH_TOKEN}@github.com/soonhokong/lean-win.git +HEAD:master;
|
git push -q https://soonhokong:${GH_TOKEN}@github.com/soonhokong/lean-windows.git +HEAD:master;
|
||||||
mv /tmp/.travis.temp.yml .travis.yml;
|
mv /tmp/.travis.temp.yml .travis.yml;
|
||||||
git reset --hard HEAD~;
|
git reset --hard HEAD~;
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -4,7 +4,7 @@ Ubuntu 12.04 LTS 64bit, g++-4.8 | clang++-3.3
|
||||||
[![Build Status](https://travis-ci.org/soonhokong/lean-osx.png?branch=master)](https://travis-ci.org/soonhokong/lean-osx)
|
[![Build Status](https://travis-ci.org/soonhokong/lean-osx.png?branch=master)](https://travis-ci.org/soonhokong/lean-osx)
|
||||||
Mac OS X 10.8.2, g++-4.8
|
Mac OS X 10.8.2, g++-4.8
|
||||||
|
|
||||||
[![Build Status](https://travis-ci.org/soonhokong/lean-win.png?branch=master)](https://travis-ci.org/soonhokong/lean-win)
|
[![Build Status](https://travis-ci.org/soonhokong/lean-windows.png?branch=master)](https://travis-ci.org/soonhokong/lean-windows)
|
||||||
Windows, x86_64-w64-mingw32-g++-4.8.1
|
Windows, x86_64-w64-mingw32-g++-4.8.1
|
||||||
|
|
||||||
Requirements
|
Requirements
|
||||||
|
|
Loading…
Reference in a new issue