2018-09-23 18:08:56 +08:00
|
|
|
sudo: true
|
2018-09-12 23:39:28 +08:00
|
|
|
language: C++
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
|
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-23 18:30:28 +08:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
|
|
|
python3-config --prefix;
|
2018-09-25 02:22:17 +08:00
|
|
|
ls /usr/local/local/Cellar/python;
|
2018-10-06 02:15:51 +08:00
|
|
|
fi
|
2018-09-30 02:15:15 +08:00
|
|
|
#rm /usr/local/opt/python
|
2018-09-25 02:19:01 +08:00
|
|
|
#ln -s /usr/local/opt/python /usr/local/Cellar/python
|
|
|
|
# ln -s /usr/local/opt/python/Frameworks/Python.framework/Versions/3.6/include/python3.6m /usr/local/opt/python/Frameworks/Python.framework/Versions/3.6/include/python3.6;
|
2018-09-30 02:15:15 +08:00
|
|
|
#ls /usr/local/opt/python/Frameworks/Python.framework/Versions/3.6/include/python3.6;
|
2018-09-23 19:05:31 +08:00
|
|
|
# brew install libiconv mysql-client hdf5;
|
|
|
|
# brew link --overwrite gcc;
|
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-23 18:56:20 +08:00
|
|
|
- cat project-config.jam
|
2018-10-16 14:02:18 +08:00
|
|
|
- ./b2 release link=shared -d0 --with-python --with-date_time --with-filesystem --with-system --with-serialization --with-test
|
2018-09-23 16:42:00 +08:00
|
|
|
- ls ./stage/lib
|
2018-09-23 18:45:39 +08:00
|
|
|
- cd
|
2018-10-19 01:44:04 +08:00
|
|
|
- git clone https://github.com/tboox/xmake.git tboox/xmake --depth 1
|
2018-09-23 18:45:39 +08:00
|
|
|
- cd ./tboox/xmake
|
|
|
|
- ./scripts/get.sh __local__
|
|
|
|
- cd
|
2018-09-12 23:39:28 +08:00
|
|
|
|
|
|
|
script:
|
2018-09-13 02:09:23 +08:00
|
|
|
- cd ./build/fasiondog/hikyuu
|
2018-11-04 14:11:36 +08:00
|
|
|
- export BOOST_ROOT=./boost_1_67_0
|
|
|
|
- export BOOST_LIB=./boost_1_67_0/stage/lib
|
2018-11-04 11:23:07 +08:00
|
|
|
- ls .
|
2018-09-22 15:23:32 +08:00
|
|
|
- xmake f --with-unit-test=y --cxx=$CXX
|
2018-09-22 18:53:25 +08:00
|
|
|
- xmake
|
2018-09-22 15:23:32 +08:00
|
|
|
- xmake r unit-test
|
2018-09-15 02:52:35 +08:00
|
|
|
|