drogon/.travis.yml

81 lines
1.7 KiB
YAML
Raw Permalink Normal View History

matrix:
include:
- os: linux
dist: xenial
- os: osx
osx_image: xcode12.2
2019-03-26 07:25:22 +00:00
sudo: required
2019-03-26 07:25:22 +00: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 07:25:22 +00:00
- gcc
- g++
- libjsoncpp-dev
- uuid-dev
- zlib1g-dev
2018-11-18 10:20:11 +00:00
- postgresql-server-dev-10
- openssl
- libssl-dev
2018-12-30 02:30:10 +00:00
- libsqlite3-dev
- mariadb-client
- mariadb-server
- build-essential
- cmake
- boost1.67
- libbrotli-dev
homebrew:
packages:
2019-03-26 07:25:22 +00:00
- jsoncpp
- ossp-uuid
- openssl
- cmake
- libtool
- lz4
2018-12-05 01:50:36 +00:00
- mariadb
2018-12-30 02:30:10 +00:00
- sqlite3
update: true
mariadb: '10.0'
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 tap homebrew/services;
brew services restart postgresql;
brew services start mariadb;
sleep 4;
mariadb -e "CREATE USER 'root'@'localhost' IDENTIFIED BY ''";
mariadb -e "SET PASSWORD FOR 'root'@'localhost' = PASSWORD('')";
mariadb -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost'";
mariadb -e "FLUSH PRIVILEGES";
brew services restart mariadb;
sleep 4;
psql -c 'create user postgres superuser;' postgres;
fi
services:
- postgresql
- mysql
script:
- ./build.sh -t
- ./test.sh -t
- sudo rm /usr/local/lib/libtrantor.a && sudo rm /usr/local/lib/libdrogon.a
- ./build.sh -tshared
- ./test.sh -t