forked from totalgood/nlpia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (50 loc) · 1.74 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
language: python
python:
- "3.6"
# - "2.7"
# - "3.6-dev"
# - "3.7"
install:
- export ENVIRONMENT_YML="conda/environment.yml"
- echo "ENVIRONMENT_YML = $ENVIRONMENT_YML"
- echo "TRAVIS_PYTHON_VERSION = $TRAVIS_PYTHON_VERSION"
- env
- sudo apt-get update
- sudo apt-get remove -y python-boto
- sudo apt-get install -y libasound* build-essential gfortran libopenblas-dev liblapack-dev pandoc portaudio19-dev
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- cp conda/.condarc ~/.condarc
- conda update -n base conda
- hash -r
# - conda config --set always_yes yes --set changeps1 no
# - conda config --add channels conda-forge
- echo "running-- conda env create -f $ENVIRONMENT_YML -n testenv python=$TRAVIS_PYTHON_VERSION"
- travis_wait 30 conda env create -q -f $ENVIRONMENT_YML -n testenv python=$TRAVIS_PYTHON_VERSION
- source activate testenv
- conda install pip
- conda install python-annoy
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
pip install -U 'PyScaffold==2.5' ;
else
pip install -U PyScaffold ;
fi
# - sudo apt-get install -y python-boto
- pip install -r requirements.txt
- pip install -U -e .
- python -c "import nltk; nltk.download('punkt')"
- conda info -a
- conda list
- pip install codecov
# - conda build conda-build-recipe
# - conda install nlpia --use-local
after_success:
- bash < (curl -s https://codecov.io/bash)
- codecov
script:
- python setup.py test