forked from matthijs/sqlpp11-connector-postgresql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
47 lines (42 loc) · 1.68 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
clone_folder: C:\projects\sqlpp11-connector-postgresql
branches:
only:
- master
- develop
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
generator: "Visual Studio 14 2015 Win64"
configuration: Debug
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
generator: "Visual Studio 15 2017 Win64"
configuration: Debug
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
generator: "Visual Studio 14 2015 Win64"
configuration: Release
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
generator: "Visual Studio 15 2017 Win64"
configuration: Release
services:
- postgresql101
init:
- echo %generator%
build_script:
- PATH=C:\Program Files\PostgreSQL\10\bin\;%PATH%
- set PGUSER=postgres
- set PGPASSWORD=Password12!
- psql -c "CREATE USER test WITH PASSWORD 'test'"
- createdb test
- createdb sqlpp_postgresql
- cd ..
- git clone --depth 1 https://github.com/NumScale/boost-header-only.git
- git clone --branch v2.4 --depth 1 https://github.com/HowardHinnant/date.git
- git clone --branch master --depth 1 https://github.com/rbock/sqlpp11.git
- cd sqlpp11
- cmake . -DHinnantDate_ROOT_DIR="C:/projects/date" -G "%generator%"
- cd ../sqlpp11-connector-postgresql
- mkdir build
- cd build
- cmake .. -DCMAKE_PREFIX_PATH="C:/Program Files;C:/projects/sqlpp11/cmake" -DCMAKE_MODULE_PATH="C:/projects/sqlpp11/cmake/Modules" -DBOOST_ROOT="C:/projects/boost-header-only/boost-1.64.0" -DHinnantDate_ROOT_DIR="C:/projects/date" -DSqlpp11_DIR="C:/projects/sqlpp11" -D -DENABLE_TESTS=True -G "%generator%"
- cmake --build . --config "%configuration%"
- ctest . --output-on-failure -C "%configuration%"