forked from abbass2/pyqstrat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (32 loc) · 1.29 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
language: python
python: 3.7
dist: xenial
addons:
apt:
packages:
- gdb
- apport
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
install:
- sudo apt-get install gcc-5 g++-5
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
#- conda create --channel conda-forge --override-channels -q -n test-environment python=$TRAVIS_PYTHON_VERSION arrow-cpp pybind11 pytest pandas numpy matplotlib scipy ipython pyarrow
- conda create --channel conda-forge -vv -q -n test-environment python=$TRAVIS_PYTHON_VERSION arrow-cpp pybind11 pytest pandas numpy matplotlib scipy ipython pyarrow sortedcontainers
- source activate test-environment
- CXX=g++-5 CC=g++-5 python setup.py build_ext --inplace
script:
- which python
- python -c 'print("hello")'
- python -c 'import pyqstrat'
- python -m pytest pyqstrat