mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-01 11:28:32 +08:00
33 lines
1019 B
YAML
33 lines
1019 B
YAML
sudo: false
|
|
language: C++
|
|
os:
|
|
- linux
|
|
- osx
|
|
|
|
compiler:
|
|
- g++
|
|
- clang++
|
|
|
|
before_install:
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install -y libhdf5-dev libhdf5-serial-dev libmysqlclient-dev; fi
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install libiconv mysql-client hdf5; brew link --overwrite gcc; fi
|
|
- git clone --branch=dev https://github.com/tboox/xmake.git tboox/xmake --depth 1
|
|
- cd ./tboox/xmake
|
|
- ./scripts/get.sh __local__
|
|
- cd
|
|
- wget https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.bz2
|
|
- tar -jxf boost_1_67_0.tar.bz2
|
|
- cd boost_1_67_0
|
|
- ./bootstrap.sh --with-python=python3
|
|
- ./b2 release link=shared -d0 --with-date_time --with-filesystem --with-system --with-serialization --with-python --with-test
|
|
- cd ..
|
|
|
|
script:
|
|
- cd ./build/fasiondog/hikyuu
|
|
- export BOOST_ROOT=$HOME/boost_1_67_0;
|
|
- 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
|
|
|