Add AppVeyor config file

This commit is contained in:
Sébastien Rombauts 2015-03-19 18:15:08 +01:00
parent 0baa5f99d5
commit ef974c2be6

28
appveyor.yml Normal file
View File

@ -0,0 +1,28 @@
# Copyright (c) 2012-2015 Sébastien Rombauts (sebastien.rombauts@gmail.com)
# build format
version: "{build}"
# scripts that run after cloning repository
install:
- git submodule update --init --recursive
- sudo apt-get update -qq
- sudo apt-get install -qq cppcheck
# configurations to add to build matrix
configuration:
- Debug
- Release
# scripts to run before build
# using a symbolic link to get the "make test" to work as if launched from the root directorys
before_build:
- mkdir build
- cd build
- cmake -DSQLITECPP_RUN_CPPLINT=ON -DSQLITECPP_RUN_CPPCHECK=ON -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON ..
- ln -s ../examples examples
# build examples, and run tests (ie make & make test)
build_script:
- cmake --build .
- ctest --output-on-failure