forked from sklam/numba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (51 loc) · 2.08 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# References https://gist.github.com/dan-blanchard/7045057
language: python
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
branches:
only:
- master
#- devel
#- release
#- devpatches
before_install:
# Install Miniconda
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-2.2.2-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-2.2.2-Linux-x86_64.sh -O miniconda.sh; fi
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/anaconda/bin:$PATH
- conda update --yes conda
# Setup environment
- conda create -n travisci --yes python=${TRAVIS_PYTHON_VERSION:0:3} llvm numpy
- source activate travisci
# Install unittest2 for Python 2
- if [ ${TRAVIS_PYTHON_VERSION:0:3} == "2.6" ]; then conda install --yes unittest2 argparse; fi
# The next couple lines fix a crash with multiprocessing on Travis
# and are not specific to using Miniconda
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
# Install boost for impyla
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then sudo apt-get install libboost-all-dev; fi
install:
# Install llvmpy
- git clone git://github.com/llvmpy/llvmpy.git -q
- cd llvmpy ; python setup.py install -q >/dev/null ; cd ..
# Build numba extensions without silencing compile errors
- python setup.py build_ext -q
# Install numba
- python setup.py install -q >/dev/null
# Install impyla
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then export LLVM_CONFIG=$(which llvm-config); fi
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then cd $HOME ; git clone https://github.com/cloudera/impyla.git -q; fi
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then cd impyla ; git checkout udf ; make ; python setup.py install; fi
script:
- cd ~ ; python -m numba.testing -v -b
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then python $HOME/impyla/tests/test_impala.py; fi
notifications:
email: false
flowdock: "cb7bc57e58b3d42f77685f93211c03ab"
on_success: "change"
on_failure: "always" # "change"