2018-09-12 23:39:28 +08:00
|
|
|
sudo: false
|
|
|
|
language: C++
|
|
|
|
os:
|
|
|
|
- linux
|
2018-09-20 02:45:38 +08:00
|
|
|
- osx
|
2018-09-12 23:39:28 +08:00
|
|
|
|
2018-09-12 23:47:19 +08:00
|
|
|
compiler:
|
2018-09-19 02:45:50 +08:00
|
|
|
- g++
|
|
|
|
- clang++
|
2018-09-12 23:39:28 +08:00
|
|
|
|
2018-09-13 00:30:29 +08:00
|
|
|
before_install:
|
2018-09-20 23:30:23 +08:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install -y libhdf5-dev libhdf5-serial-dev libmysqlclient-dev; fi
|
2018-09-21 02:06:19 +08:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install libiconv mysql-client hdf5; brew link --overwrite gcc; fi
|
2018-09-12 23:39:28 +08:00
|
|
|
- git clone --branch=dev https://github.com/tboox/xmake.git tboox/xmake --depth 1
|
|
|
|
- cd ./tboox/xmake
|
|
|
|
- ./scripts/get.sh __local__
|
2018-09-12 23:43:22 +08:00
|
|
|
- cd
|
2018-09-12 23:39:28 +08:00
|
|
|
- wget https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.bz2
|
2018-09-12 23:58:46 +08:00
|
|
|
- tar -jxf boost_1_67_0.tar.bz2
|
2018-09-12 23:39:28 +08:00
|
|
|
- cd boost_1_67_0
|
2018-09-13 23:14:22 +08:00
|
|
|
- ./bootstrap.sh --with-python=python3
|
2018-09-13 00:30:29 +08:00
|
|
|
- ./b2 release link=shared -d0 --with-date_time --with-filesystem --with-system --with-serialization --with-python --with-test
|
2018-09-13 01:58:32 +08:00
|
|
|
- cd ..
|
2018-09-12 23:39:28 +08:00
|
|
|
|
|
|
|
script:
|
2018-09-13 02:09:23 +08:00
|
|
|
- cd ./build/fasiondog/hikyuu
|
2018-09-20 23:12:30 +08:00
|
|
|
- export BOOST_ROOT=$HOME/boost_1_67_0;
|
2018-09-22 15:23:32 +08:00
|
|
|
- export BOOST_LIB=$HOME/boost_1_67_0/stage/lib
|
|
|
|
- xmake f --with-unit-test=y --cxx=$CXX
|
|
|
|
- xmake -b _hikyuu
|
|
|
|
- xmake r unit-test
|
2018-09-15 02:52:35 +08:00
|
|
|
|