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-13 20:48:51 +08:00
|
|
|
- sudo apt-get install -y libhdf5-dev libhdf5-serial-dev
|
2018-09-13 21:18:20 +08:00
|
|
|
- sudo apt-get install -y libmysqlclient-dev
|
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 02:43:03 +08:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
|
|
export BOOST_ROOT=/home/travis/boost_1_67_0;
|
|
|
|
export BOOST_LIB=/home/travis/boost_1_67_0/stage/lib;
|
|
|
|
xmake f --with-unit-test=y;
|
|
|
|
xmake r unit-test;
|
|
|
|
fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
|
|
|
ehco $HOME;
|
|
|
|
python3 --version;
|
|
|
|
fi
|
2018-09-15 02:52:35 +08:00
|
|
|
|