Skip to content

Commit

Permalink
Repair Travis and AppVeyor (#9)
Browse files Browse the repository at this point in the history
* adjusting travis and appveyor
  • Loading branch information
dagostinelli authored Mar 12, 2020
1 parent fa65494 commit ec80685
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 32 deletions.
6 changes: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,9 @@ compiler:
- clang
- gcc

env:
- FLAGS="-DCMAKE_BUILD_TYPE=Debug"
- FLAGS="-DCMAKE_BUILD_TYPE=Release"

script:
- cmake --version
- cmake -B build -DHYPATIA_BUILD_DOCS=OFF $FLAGS .
- cmake -B build .
- cmake --build build
- cd build && ctest

Expand Down
32 changes: 5 additions & 27 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,16 @@
shallow_clone: true

configuration:
- Debug
- Release

environment:
matrix:
- vstudio: Visual Studio 14 2015
- vstudio: Visual Studio 12 2013
- vstudio: Visual Studio 11 2012
- vstudio: Visual Studio 10 2010
- vstudio: Visual Studio 14 2015 Win64
- vstudio: Visual Studio 12 2013 Win64
- vstudio: Visual Studio 11 2012 Win64
- vstudio: Visual Studio 10 2010 Win64

build_script:
- mkdir build
- cd build
- cmake -G "%vstudio%" -trace --warn-uninitialized --warn-unused_vars -Wdev
--config %configuration%
-DCMAKE_BUILD_TYPE=%configuration%
-DCMAKE_INSTALL_PREFIX=../install
-DHYPATIA_BUILD_STATIC=ON
-DHYPATIA_BUILD_SHARED=ON
-DHYPATIA_BUILD_DOCS=OFF
-DHYPATIA_SINGLE_PRECISION_FLOATS=OFF
..
- cmake --build "%cd%" --config %configuration%
- cmd: '"c:\Program Files (x86)\CMake\bin\cpack.exe" -G "ZIP" -C %configuration%'
- cmake --version
- cmake -B build -G "%vstudio%" .
- cmake --build build

test_script:
- ctest --output-on-failure
-C %configuration%

artifacts:
- path: 'build\*.zip'
- cd build
- ctest -C Debug

0 comments on commit ec80685

Please sign in to comment.