-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from SwissTPH/develop
Merge develop for release 'schema-34.0'
- Loading branch information
Showing
151 changed files
with
27,880 additions
and
20,685 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,6 @@ | ||
[submodule "zlib"] | ||
path = zlib | ||
url = https://github.com/commontk/zlib.git | ||
[submodule "gsl"] | ||
path = gsl | ||
url = https://github.com/ampl/gsl |
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 |
---|---|---|
@@ -1,28 +1,75 @@ | ||
env: | ||
global: | ||
- BASE_URL="https://github.com/SwissTPH/openmalaria" | ||
|
||
os: | ||
- linux | ||
- osx | ||
|
||
matrix: | ||
allow_failures: | ||
- os: osx | ||
- compiler: clang | ||
|
||
sudo: false | ||
|
||
language: cpp | ||
|
||
compiler: gcc | ||
compiler: | ||
- gcc | ||
- clang | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- build-essential | ||
- cmake | ||
- python | ||
- libboost-all-dev | ||
- libgsl0-dev | ||
- libxerces-c2-dev | ||
- xsdcxx | ||
- zlib1g-dev | ||
|
||
before_install: | ||
- sudo apt-get -qq install cmake build-essential python libgsl0-dev libboost-all-dev libxerces-c2-dev xsdcxx zlib1g-dev | ||
- test "$TRAVIS_OS_NAME" == "osx" && util/install-dep-osx.sh || echo "not installing osx dependencies" | ||
|
||
install: | ||
- mkdir build && cd build | ||
- mkdir build && pushd build | ||
- cmake -DCMAKE_BUILD_TYPE=Release .. | ||
|
||
script: | ||
- make -j2 | ||
- ctest -j2 | ||
- ./openMalaria --version | ||
- test "$TRAVIS_OS_NAME" == "linux" && ldd openMalaria || otool -L openMalaria | ||
- ctest | ||
- popd | ||
|
||
notifications: | ||
email: | ||
- [email protected] | ||
after_success: | ||
- util/generate-checksums.sh build | ||
- util/build-info.sh | tee travis-build.json | ||
|
||
before_deploy: | ||
- mv -v build/schema/scenario_current.xsd . | ||
- mv -v build/openMalaria* . | ||
- tar cvzf openMalaria-$TRAVIS_OS_NAME.tar.gz openMalaria* scenario_current.xsd test/autoRegressionParameters.csv test/densities.csv travis-build.json | ||
|
||
deploy: | ||
provider: releases | ||
api_key: | ||
secure: dOTDLZ10UHm3JoKODtlBMxChFaXOekUM69S2f6eoAt0ctjFPZXHic2aEUvabeZJqq8UX83xO1I0tGTX7DWMvxd7zPTQHcW9N3XxWvgChKxs4OSqRL7GnunI3iZPH8125ZCeMNuh+oCgf1DdfOy0uOgdygGKzvIYEFhd7c5gOH/I= | ||
skip_cleanup: true | ||
file: | ||
openMalaria | ||
file: openMalaria-$TRAVIS_OS_NAME.tar.gz | ||
on: | ||
tags: true | ||
|
||
# blacklist | ||
branches: | ||
except: | ||
- appveyor-build | ||
- binary-archive | ||
|
||
notifications: | ||
email: | ||
- [email protected] | ||
|
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
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
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
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
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,56 @@ | ||
clone_depth: 30 | ||
|
||
environment: | ||
VisualStudioVersion: 14.0 | ||
|
||
os: Visual Studio 2015 | ||
|
||
cache: | ||
- xsd-4.0.msi -> appveyor.yml | ||
- boost_1_55_0.zip -> appveyor.yml | ||
- gsl-libs.zip -> appveyor.yml | ||
- gsl-headers.zip -> appveyor.yml | ||
- zlib.lib.zip -> appveyor.yml | ||
|
||
install: | ||
- git submodule init && git submodule update | ||
- pushd util\install-dep-windows\ && install-dependencies-win.bat & popd | ||
- pushd gsl && cmake . & popd | ||
- pushd zlib && cmake . & popd | ||
- cmd: echo "Dependencies installed and configured" | ||
- cmd: echo "Configure openMalaria build and generate solution file 'OpenMalaria.sln' with CMake" | ||
- mkdir build-win && pushd build-win && cmake .. -DGSL_LIB_OPT:FILEPATH="%APPVEYOR_BUILD_FOLDER%/lib/gsl.lib" -DZ_LIBRARIES:FILEPATH="%APPVEYOR_BUILD_FOLDER%/lib/zlib.lib" -DXERCESC_LIB_OPT:FILEPATH="%APPVEYOR_BUILD_FOLDER%/xsd/lib/vc-12.0/xerces-c_3.lib" -DZ_INCLUDE_DIRS:PATH="%APPVEYOR_BUILD_FOLDER%/zlib" -DXERCESC_INCLUDE_DIRS:PATH="%APPVEYOR_BUILD_FOLDER%/xsd/include/xercesc" -DBoost_INCLUDE_DIR:PATH="%APPVEYOR_BUILD_FOLDER%/boost_1_55_0" -DGSL_INCLUDE_DIR:PATH="%APPVEYOR_BUILD_FOLDER%/gsl" -DGSL_INCLUDE_DIR2:PATH="%APPVEYOR_BUILD_FOLDER%/gsl/gsl" -DGSL_CBLAS_LIB_OPT:FILEPATH="%APPVEYOR_BUILD_FOLDER%/lib/gslcblas.lib" -DXSD_INCLUDE_DIRS:PATH="%APPVEYOR_BUILD_FOLDER%/xsd/include" -DXSD_EXECUTABLE:FILEPATH="%APPVEYOR_BUILD_FOLDER%/xsd/bin/xsd.exe" & popd | ||
|
||
configuration: Release | ||
|
||
build: | ||
project: build-win\OpenMalaria.sln | ||
parallel: true | ||
verbosity: normal | ||
|
||
after_build: | ||
- cmd: ECHO build-log":" https://ci.appveyor.com/project/tph-thuering/openmalaria/build/%APPVEYOR_BUILD_VERSION% >> %APPVEYOR_BUILD_FOLDER%\appveyor.log | ||
- cmd: ECHO build-id":" %APPVEYOR_BUILD_ID% >> %APPVEYOR_BUILD_FOLDER%\appveyor.log | ||
- cmd: ECHO build-name":" %APPVEYOR_BUILD_NAME% >> %APPVEYOR_BUILD_FOLDER%\appveyor.log | ||
- ps: pushd "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin"; .\dumpbin.exe /dependents $env:APPVEYOR_BUILD_FOLDER"\build-win\Release\openMalaria.exe" > $env:APPVEYOR_BUILD_FOLDER"\dependencies.txt"; popd | ||
- 7z a openMalaria-windows.zip "%APPVEYOR_BUILD_FOLDER%\build-win\Release\openMalaria.exe" "%APPVEYOR_BUILD_FOLDER%\xsd\bin\xerces-c_3_1_vc120.dll" "%APPVEYOR_BUILD_FOLDER%\README.md" "%APPVEYOR_BUILD_FOLDER%\build-win\schema\scenario_current.xsd" "%APPVEYOR_BUILD_FOLDER%\appveyor.log" "%APPVEYOR_BUILD_FOLDER%\dependencies.txt" "%APPVEYOR_BUILD_FOLDER%\test\autoRegressionParameters.csv" "%APPVEYOR_BUILD_FOLDER%\test\densities.csv" | ||
|
||
artifacts: | ||
- path: openMalaria-windows.zip | ||
|
||
notifications: | ||
- provider: Email | ||
to: | ||
- [email protected] | ||
on_build_success: true | ||
on_build_failure: false | ||
on_build_status_changed: true | ||
|
||
deploy: | ||
- provider: GitHub | ||
auth_token: | ||
secure: QDHrqei4LL5ihC0nST2nAf3uCpjvNyKHH11V53o/lpnX5JZLq/gY41iJm9FIQ+Vr | ||
artifact: openMalaria-windows.zip | ||
draft: true | ||
on: | ||
APPVEYOR_REPO_TAG: true |
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
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
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
Oops, something went wrong.