From ef974c2be686e126ec1062ec8eea0dc7f4540e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Thu, 19 Mar 2015 18:15:08 +0100 Subject: [PATCH] Add AppVeyor config file --- appveyor.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..a18fc73 --- /dev/null +++ b/appveyor.yml @@ -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 \ No newline at end of file