This repository has been archived by the owner on Dec 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
/
.appveyor.yml
53 lines (48 loc) · 1.71 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
48
49
50
51
52
53
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 https://github.com/HowardHinnant/date.git
- cd date
- cmake . -G "%generator%"
- cmake --build . --config %configuration%
- cmake --build . --target install
- cd ..
- git clone https://github.com/rbock/sqlpp11.git
- cd sqlpp11
- cmake . -DHinnantDate_ROOT_DIR="C:/projects/date" -G "%generator%"
- cmake --build . --config %configuration%
- cmake --build . --target install
- 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" -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%"