drogon/.travis.yml

60 lines
1.1 KiB
YAML
Raw Normal View History

matrix:
include:
- os: linux
dist: bionic
- os: osx
osx_image: xcode11
2019-03-26 15:25:22 +08:00
sudo: required
2019-03-26 15:25:22 +08:00
language: cpp
addons:
apt:
sources:
- xenial
- sourceline: 'deb http://archive.ubuntu.com/ubuntu xenial main'
- sourceline: 'ppa:mhier/libboost-latest'
packages:
2019-03-26 15:25:22 +08:00
- gcc
- g++
- libjsoncpp-dev
- uuid-dev
- zlib1g-dev
2018-11-18 18:20:11 +08:00
- postgresql-server-dev-10
- openssl
- libssl-dev
2018-12-30 10:30:10 +08:00
- libsqlite3-dev
- build-essential
- cmake
- boost1.67
homebrew:
packages:
2019-03-26 15:25:22 +08:00
- jsoncpp
- ossp-uuid
- openssl
- cmake
- libtool
- lz4
2018-12-05 09:50:36 +08:00
- mariadb
2018-12-30 10:30:10 +08:00
- sqlite3
before_install:
- wget https://github.com/google/googletest/archive/release-1.10.0.tar.gz
- tar xf release-1.10.0.tar.gz
- cd googletest-release-1.10.0
- cmake .
- make
- sudo make install
- cd -
before_script:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew services restart postgresql;
sleep 2;
psql -c 'create user postgres superuser;' postgres;
fi
services:
- postgresql
script:
- ./build.sh -t && ./test.sh -t