Skip to content

Commit

Permalink
Further streamlining following https://github.com/simbody/simbody/blo…
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Di Remigio committed Nov 11, 2015
1 parent a551b00 commit 96bbb3e
Showing 1 changed file with 32 additions and 55 deletions.
87 changes: 32 additions & 55 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,71 +14,48 @@
# build version format: 1, 2, ...
version: '{build}'

os: MinGW
os: Visual Studio 2015

platform: x86

build:
verbosity: detailed

# prepare environment
environment:
# set custom path (will be more extended later in build_script section)
path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\Program Files\7-Zip;C:\Program Files (x86)\CMake\bin
# set MinGw-w64 (64-bit) version 5.1.0 download URL
# url: http://kent.dl.sourceforge.net/project/mingw-w64/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/5.1.0/threads-posix/seh/x86_64-5.1.0-release-posix-seh-rt_v4-rev0.7z
# user can possibly use different Python versions, we try to test multiple cases
# 64-bit version on 64-bit system allows easier installation of Python packages using .exe installers
# and better CMake automatic detection of some Python tools
matrix:
# Python 2.7; 32-bit version
- python: C:\Python27;C:\Python27\Scripts
# Python 2.7; 64-bit version
# - python: C:\Python27-x64;C:\Python27-x64\Scripts
# Python 3.4; 32-bit version
# - python: C:\Python34;C:\Python34\Scripts
# Python 3.4; 64-bit version
# - python: C:\Python34-x64;C:\Python34-x64\Scripts

build_script:
# add location of used Python to path
- set path=%path%;%python%

# create dir for custom software and move there
- mkdir C:\software && cd C:\software
# Python 2.7; 64-bit version
- python: C:\Python27-x64;C:\Python27-x64\Scripts
- GENERATOR: "MinGW Makefiles"
BUILDFLAGS: "--jobs=2 VERBOSE=1"

# download and unpack MinGW-w64 compilers
#- ps: wget $env:url -OutFile MinGW.7z
#- 7z x MinGW.7z > NUL
before_build:
# Workaround for CMake not wanting sh.exe on PATH for MinGW
- set PATH=%PATH:C:\Program Files (x86)\Git\bin;=%
- set PATH=C:\MinGW\bin;%PATH%
- set PATH=%python%;%PATH%
# create dir for custom software and move there
- mkdir C:\software && cd C:\software
- ps: wget http://web-docs.gsi.de/~milias/zlib/zlib-1.2.5-bin-x64.zip -OutFile zlib-1.2.5-bin-x64.zip
- dir
- 7z x zlib-1.2.5-bin-x64.zip
- dir
- dir zlib
# add library to the path
- set PATH=C:\software\zlib;%PATH%
# download and upgrade pip
- ps: wget https://bootstrap.pypa.io/get-pip.py -OutFile get-pip.py
- python get-pip.py
# go back to project source dir
- cd %APPVEYOR_BUILD_FOLDER%

# add compilers binary dir to the path
#- set path=%path%;C:\software\mingw64\bin

# ######################################
# download and unpack the ZLIB library
# ######################################
#- ps: wget http://downloads.sourceforge.net/project/mingw-w64/External%20binary%20packages%20%28Win64%20hosted%29/Binaries%20%2864-bit%29/zlib-1.2.5-bin-x64.zip -OutFile zlib-1.2.5-bin-x64.zip
- ps: wget http://web-docs.gsi.de/~milias/zlib/zlib-1.2.5-bin-x64.zip -OutFile zlib-1.2.5-bin-x64.zip
- dir
- 7z x zlib-1.2.5-bin-x64.zip
- dir
- dir zlib
#- 7z x zlib-1.2.5-bin-x64.zip > NUL
# add library to the path
- set path=%path%;C:\software\zlib

# download and upgrade pip
- ps: wget https://bootstrap.pypa.io/get-pip.py -OutFile get-pip.py
- python get-pip.py

# go back to project source dir
- cd %APPVEYOR_BUILD_FOLDER%
build_script:
- python setup.py --generator=%GENERATOR% --cmake-options="-DENABLE_FORTRAN_API=ON"
- cd build
- cmake --build . -- %BUILDFLAGS%

test_script:
# show environment
- echo %path%
- python setup.py --generator="MinGW Makefiles" --cmake-options="-DENABLE_FORTRAN_API=ON"
- cd build
- mingw32-make VERBOSE=1
- tests\unit_tests.exe [numerical_quadrature] --success
#- ctest --verbose --dashboard Experimental
- ctest --parallel 2 --output-on-failure --verbose --dashboard Experimental

notifications:
- provider: Slack
Expand Down

0 comments on commit 96bbb3e

Please sign in to comment.