forked from matthijs/sqlpp11-connector-postgresql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (39 loc) · 1002 Bytes
/
.travis.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
language: cpp
sudo: required
dist: trusty
compiler:
- gcc
#- clang
notifications:
email:
on_success: change
on_failure: always
services:
- postgresql
install:
- sudo apt-get install -y postgresql-server-dev-all libboost-dev
- pwd
- g++ --version
- cmake --version
- cd ..
- git clone https://github.com/HowardHinnant/date
- cd date
- git checkout tags/v2.4
- cmake -DCMAKE_BUILD_TYPE=Release -DTZ_CXX_STANDARD=11 .
- make VERBOSE=1 && sudo make install
- cd ..
- git clone https://github.com/rbock/sqlpp11.git
- cd sqlpp11
- cmake -DCMAKE_BUILD_TYPE=Release .
- make && sudo make install
- cd ../sqlpp11-connector-postgresql
before_script:
- mkdir build
- cd build
- cmake .. -DCMAKE_MODULE_PATH="/usr/local/lib/cmake/Sqlpp11"
script:
- cmake --build .
- echo -e "sudo -u postgres createuser -l -S -D -R $USER\nsudo -u postgres createdb $USER" > setup_db.sh
- chmod a+x setup_db.sh
- sudo ./setup_db.sh
- ctest --output-on-failure