2018-09-12 23:39:28 +08:00
|
|
|
sudo: false
|
|
|
|
language: C++
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
|
2018-09-12 23:47:19 +08:00
|
|
|
compiler:
|
2018-09-12 23:39:28 +08:00
|
|
|
- gcc
|
|
|
|
|
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
|
|
|
|
- ./bootstrap.sh --with-python=python3.5
|
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-13 02:19:00 +08:00
|
|
|
- export BOOST_ROOT=/home/travis/boost_1_67_0
|
|
|
|
- export BOOST_LIB=/home/travis/boost_1_67_0/stage/lib
|
2018-09-13 02:34:25 +08:00
|
|
|
- xmake f --with-unit-test=y
|
|
|
|
- xmake r unit-test
|
2018-09-12 23:39:28 +08:00
|
|
|
|