2018-09-23 18:08:56 +08:00
|
|
|
sudo: true
|
2018-09-12 23:39:28 +08:00
|
|
|
language: C++
|
2019-09-22 02:13:45 +08:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
2019-09-22 03:11:43 +08:00
|
|
|
- g++-7
|
2019-09-22 02:13:45 +08:00
|
|
|
env:
|
2019-09-22 03:11:43 +08:00
|
|
|
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
|
2019-09-22 02:13:45 +08:00
|
|
|
|
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
2019-09-22 03:11:43 +08:00
|
|
|
- g++-8
|
2019-09-22 02:13:45 +08:00
|
|
|
env:
|
2019-09-22 03:11:43 +08:00
|
|
|
- MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
|
2019-09-22 02:13:45 +08:00
|
|
|
|
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
2019-09-22 10:57:09 +08:00
|
|
|
- g++-9
|
2019-09-22 02:13:45 +08:00
|
|
|
env:
|
2019-09-22 03:11:43 +08:00
|
|
|
- MATRIX_EVAL="CC=gcc-9 && CXX=g++-9"
|
2019-09-22 02:13:45 +08:00
|
|
|
|
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
2019-09-22 10:57:09 +08:00
|
|
|
- ubuntu-toolchain-r-test
|
2019-09-22 02:13:45 +08:00
|
|
|
packages:
|
2019-09-22 03:11:43 +08:00
|
|
|
- clang-5.0
|
2019-09-22 02:13:45 +08:00
|
|
|
env:
|
2019-09-22 03:11:43 +08:00
|
|
|
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
|
2019-09-22 02:13:45 +08:00
|
|
|
|
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
2019-09-22 10:57:09 +08:00
|
|
|
- ubuntu-toolchain-r-test
|
2019-09-22 02:13:45 +08:00
|
|
|
packages:
|
2019-09-22 03:11:43 +08:00
|
|
|
- clang-6.0
|
2019-09-22 02:13:45 +08:00
|
|
|
env:
|
2019-09-22 03:11:43 +08:00
|
|
|
- MATRIX_EVAL="CC=clang-6.0 && CXX=clang++-6.0"
|
2019-09-22 02:13:45 +08:00
|
|
|
|
2018-09-12 23:39:28 +08:00
|
|
|
|
2018-09-13 00:30:29 +08:00
|
|
|
before_install:
|
2019-09-22 02:13:45 +08:00
|
|
|
- eval "${MATRIX_EVAL}"
|
|
|
|
|
|
|
|
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
|
2019-10-23 23:07:09 +08:00
|
|
|
- ./b2 release link=shared -d0 --with-python --with-serialization
|
|
|
|
- ./b2 release link=static -d0 --with-date_time --with-filesystem --with-system --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 .
|
2019-09-09 02:11:26 +08:00
|
|
|
- xmake f --cxx=$CXX --confirm=y --test=small
|
2019-09-21 22:18:22 +08:00
|
|
|
- xmake -b small-test
|
2019-09-21 21:01:44 +08:00
|
|
|
- xmake r small-test
|
2018-09-15 02:52:35 +08:00
|
|
|
|