Merge pull request #171 from isuruf/ci

WIP Continuous Integration improvements
This commit is contained in:
wbhart 2016-03-31 23:26:58 +02:00
commit 92d6e67d69
4 changed files with 53 additions and 6 deletions

5
.appveyor_msys_build.sh Normal file
View File

@ -0,0 +1,5 @@
export PATH=/c/msys64/mingw$ABI/bin:$PATH
cd /c/projects/mpir
./configure ABI=$ABI
make
make check

View File

@ -1,7 +1,19 @@
language: c
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq texinfo
sudo: false
os:
- osx
- linux
compiler:
- gcc
- clang
addons:
apt:
packages:
- texinfo
script:
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]] && [[ "${CC}" == "gcc" ]]; then
export CC=gcc-4.8;
export CXX=g++-4.8;
fi
- $CC --version
- ./configure && make && make check

31
appveyor.yml Normal file
View File

@ -0,0 +1,31 @@
version: 1.0.{build}
build:
verbosity: minimal
environment:
matrix:
- BUILD_TYPE: Release
COMPILER: MSVC15
PLATFORM: x64
- BUILD_TYPE: Release
COMPILER: MSVC15
PLATFORM: Win32
- COMPILER: MinGW-w64
ABI: 64
- COMPILER: MinGW-w64
ABI: 32
- BUILD_TYPE: Debug
COMPILER: MSVC15
PLATFORM: x64
- BUILD_TYPE: Debug
COMPILER: MSVC15
PLATFORM: Win32
build_script:
- if [%COMPILER%]==[MinGW-w64] C:\msys64\usr\bin\sh.exe --login /c/projects/mpir/.appveyor_msys_build.sh
- if [%COMPILER%]==[MSVC15] cd build.vc14
- if [%COMPILER%]==[MSVC15] msbuild.bat gc lib %PLATFORM% %BUILD_TYPE% +tests
test_script:
- if [%COMPILER%]==[MSVC15] cd mpir-tests
- if [%COMPILER%]==[MSVC15] python %cd%\run-tests.py 0

View File

@ -30,8 +30,7 @@ if /i "%libp%" == "LIB" (
)
if /i "%5" EQU "+tests" (
set TESTDIR=.\mpir-tests\
for /d %%d in (%TESTDIR%*) do (
for /d %%d in (mpir-tests\*) do (
for %%f in (%%d\*.vcxproj) do (
%msbdir%\msbuild.exe /property:SolutionDir=..\..\ /property:OutDir=..\..\%plat%\%conf%\ /p:Platform=%plat% /p:Configuration=%conf% %%f
)