2019-01-07 06:20:39 +00:00
|
|
|
language: python
|
2019-03-19 05:41:54 +00:00
|
|
|
|
|
|
|
dist: xenial # required for Python >= 3.7 (travis-ci/travis-ci#9069)
|
|
|
|
|
2019-01-07 06:20:39 +00:00
|
|
|
python:
|
2019-03-19 05:41:54 +00:00
|
|
|
- "3.7"
|
|
|
|
|
2019-03-27 08:21:25 +00:00
|
|
|
script:
|
|
|
|
# todo: use python unittest
|
|
|
|
- mkdir run; cd run; python ../tests/load_all.py
|
|
|
|
|
2019-03-19 05:41:54 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
2019-03-19 10:38:24 +00:00
|
|
|
- name: "code quality analysis: flake8"
|
|
|
|
before_install:
|
|
|
|
- pip install flake8
|
|
|
|
install:
|
|
|
|
- "" # prevent running "pip install -r requirements.txt"
|
|
|
|
script:
|
|
|
|
- flake8
|
|
|
|
|
2019-03-19 11:31:28 +00:00
|
|
|
- name: "pip install under Windows"
|
|
|
|
os: "windows"
|
|
|
|
language: "cpp"
|
|
|
|
env:
|
|
|
|
- PATH=/c/Python37:/c/Python37/Scripts:$PATH
|
|
|
|
before_install:
|
|
|
|
- choco install python3 --version 3.7.2
|
|
|
|
install:
|
2019-03-27 09:24:28 +00:00
|
|
|
- python -m pip install --upgrade pip wheel setuptools
|
2019-03-19 11:31:28 +00:00
|
|
|
- pip install -r requirements.txt
|
|
|
|
- pip install .
|
|
|
|
|
2019-03-29 03:02:46 +00:00
|
|
|
- name: "sdist install under Windows"
|
|
|
|
os: "windows"
|
|
|
|
language: "cpp"
|
|
|
|
env:
|
|
|
|
- PATH=/c/Python37:/c/Python37/Scripts:$PATH
|
|
|
|
before_install:
|
|
|
|
- choco install python3 --version 3.7.2
|
|
|
|
install:
|
|
|
|
- python -m pip install --upgrade pip wheel setuptools
|
|
|
|
- python setup.py sdist
|
|
|
|
- powershell -Command $name = (ls dist).name; pip install "dist/$name"
|
|
|
|
|
2019-03-19 10:38:24 +00:00
|
|
|
- name: "pip install under Ubuntu: gcc-8"
|
2019-03-19 08:34:49 +00:00
|
|
|
before_install:
|
2019-03-19 05:41:54 +00:00
|
|
|
# C++17
|
|
|
|
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
2019-03-21 01:49:24 +00:00
|
|
|
- sudo apt-get update -y
|
2019-03-19 05:41:54 +00:00
|
|
|
install:
|
|
|
|
# C++17
|
2019-03-21 01:49:24 +00:00
|
|
|
- sudo apt-get install -y gcc-8 g++-8
|
2019-03-19 05:41:54 +00:00
|
|
|
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 90
|
|
|
|
- sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-8 90
|
|
|
|
- sudo update-alternatives --install /usr/bin/gcc cc /usr/bin/gcc-8 90
|
|
|
|
# Linux install script
|
2019-03-27 09:24:28 +00:00
|
|
|
- python -m pip install --upgrade pip wheel setuptools
|
2019-03-19 05:41:54 +00:00
|
|
|
- bash ./install.sh
|
|
|
|
|
2019-03-19 10:38:24 +00:00
|
|
|
- name: "pip install under Ubuntu: gcc-7"
|
2019-03-19 08:34:49 +00:00
|
|
|
before_install:
|
2019-03-19 10:38:24 +00:00
|
|
|
# C++17
|
|
|
|
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
2019-03-21 01:49:24 +00:00
|
|
|
- sudo apt-get update -y
|
2019-03-19 05:41:54 +00:00
|
|
|
install:
|
2019-03-19 10:38:24 +00:00
|
|
|
# C++17
|
2019-03-21 01:49:24 +00:00
|
|
|
- sudo apt-get install -y gcc-7 g++-7
|
2019-03-19 10:38:24 +00:00
|
|
|
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 90
|
|
|
|
- sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-7 90
|
|
|
|
- sudo update-alternatives --install /usr/bin/gcc cc /usr/bin/gcc-7 90
|
|
|
|
# Linux install script
|
2019-03-28 05:58:50 +00:00
|
|
|
- python -m pip install --upgrade pip wheel setuptools
|
2019-03-19 10:38:24 +00:00
|
|
|
- bash ./install.sh
|
2019-03-29 03:02:46 +00:00
|
|
|
|
|
|
|
- name: "sdist under Ubuntu: gcc-8"
|
|
|
|
before_install:
|
|
|
|
# C++17
|
|
|
|
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
|
|
|
- sudo apt-get update -y
|
|
|
|
install:
|
|
|
|
# C++17
|
|
|
|
- sudo apt-get install -y gcc-8 g++-8
|
|
|
|
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 90
|
|
|
|
- sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-8 90
|
|
|
|
- sudo update-alternatives --install /usr/bin/gcc cc /usr/bin/gcc-8 90
|
|
|
|
# Linux install script
|
|
|
|
- python -m pip install --upgrade pip wheel setuptools
|
|
|
|
- # Get and build ta-lib
|
|
|
|
pushd /tmp
|
|
|
|
wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
|
|
|
|
tar -xf ta-lib-0.4.0-src.tar.gz
|
|
|
|
cd ta-lib
|
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
popd
|
|
|
|
# ta-lib import numpy in setup.py, so we must install it before installing ta-lib
|
|
|
|
pip instal numpy
|
|
|
|
- python setup.py sdist
|
|
|
|
- pip install dist/`ls dist`
|