2019-08-16 23:41:03 +08:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
2020-02-04 10:58:10 +08:00
|
|
|
dist: xenial
|
2019-08-16 23:41:03 +08:00
|
|
|
- os: osx
|
2020-10-24 14:28:39 +08:00
|
|
|
osx_image: xcode12.2
|
2019-03-26 15:25:22 +08:00
|
|
|
|
2018-11-18 18:10:17 +08:00
|
|
|
sudo: required
|
2019-03-26 15:25:22 +08:00
|
|
|
|
2018-11-18 18:10:17 +08:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- xenial
|
|
|
|
- sourceline: 'deb http://archive.ubuntu.com/ubuntu xenial main'
|
2019-07-26 22:22:12 +08:00
|
|
|
- sourceline: 'ppa:mhier/libboost-latest'
|
2018-11-18 18:10:17 +08:00
|
|
|
packages:
|
2019-03-26 15:25:22 +08:00
|
|
|
- gcc
|
|
|
|
- g++
|
2018-11-18 18:10:17 +08:00
|
|
|
- libjsoncpp-dev
|
|
|
|
- uuid-dev
|
|
|
|
- zlib1g-dev
|
2018-11-18 18:20:11 +08:00
|
|
|
- postgresql-server-dev-10
|
2018-11-18 18:10:17 +08:00
|
|
|
- openssl
|
|
|
|
- libssl-dev
|
2018-12-30 10:30:10 +08:00
|
|
|
- libsqlite3-dev
|
2020-04-11 11:46:47 +08:00
|
|
|
- mariadb-client
|
|
|
|
- mariadb-server
|
2018-11-18 18:10:17 +08:00
|
|
|
- build-essential
|
|
|
|
- cmake
|
2019-07-26 22:22:12 +08:00
|
|
|
- boost1.67
|
2020-04-04 18:15:15 +08:00
|
|
|
- libbrotli-dev
|
2018-11-18 18:10:17 +08:00
|
|
|
homebrew:
|
|
|
|
packages:
|
2019-03-26 15:25:22 +08:00
|
|
|
- jsoncpp
|
|
|
|
- ossp-uuid
|
2018-11-18 18:10:17 +08:00
|
|
|
- openssl
|
|
|
|
- cmake
|
|
|
|
- libtool
|
|
|
|
- lz4
|
2018-12-05 09:50:36 +08:00
|
|
|
- mariadb
|
2018-12-30 10:30:10 +08:00
|
|
|
- sqlite3
|
2020-02-22 11:34:05 +08:00
|
|
|
update: true
|
2020-04-11 11:46:47 +08:00
|
|
|
mariadb: '10.0'
|
|
|
|
|
2020-01-25 11:58:20 +08:00
|
|
|
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 -
|
2020-04-11 11:46:47 +08:00
|
|
|
|
2019-08-16 23:41:03 +08:00
|
|
|
before_script:
|
2020-04-11 11:46:47 +08:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
2020-02-04 10:58:10 +08:00
|
|
|
brew tap homebrew/services;
|
2020-04-11 11:46:47 +08:00
|
|
|
brew services restart postgresql;
|
|
|
|
brew services start mariadb;
|
2020-10-24 14:28:39 +08:00
|
|
|
sleep 4;
|
2020-04-11 11:46:47 +08:00
|
|
|
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;
|
2020-10-24 14:28:39 +08:00
|
|
|
sleep 4;
|
2020-04-11 11:46:47 +08:00
|
|
|
psql -c 'create user postgres superuser;' postgres;
|
2019-08-16 23:41:03 +08:00
|
|
|
fi
|
2018-11-18 18:10:17 +08:00
|
|
|
|
2019-08-16 23:41:03 +08:00
|
|
|
services:
|
|
|
|
- postgresql
|
2020-04-11 11:46:47 +08:00
|
|
|
- mysql
|
|
|
|
|
2018-11-18 18:10:17 +08:00
|
|
|
script:
|
2020-04-11 11:46:47 +08:00
|
|
|
- ./build.sh -t
|
|
|
|
- ./test.sh -t
|
2021-04-09 10:17:28 +08:00
|
|
|
- sudo rm /usr/local/lib/libtrantor.a && sudo rm /usr/local/lib/libdrogon.a
|
|
|
|
- ./build.sh -tshared
|
|
|
|
- ./test.sh -t
|