forked from totalgood/nlpia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (53 loc) · 1.7 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
58
language: python
python:
- "3.6"
# - "2.7"
# - "3.6-dev"
# - "3.7"
before_install:
- sudo rm -f /etc/boto.cfg
install:
- export ENVIRONMENT_YML="conda/environment.yml"
- export CONDA_ENV_NAME="venv_nlpia"
- export CONDA_PYTHON_VERSION=3.6
- export PYTHON_VERSION=3.6
- export CONDA_DIR="$HOME/miniconda"
- sudo apt-get update
- sudo apt-get remove -y python-boto
- sudo apt-get install -y build-essential gfortran libopenblas-dev liblapack-dev pandoc portaudio19-dev libasound2-dev pulseaudio libpulse-dev
- source tests/install_miniconda.sh
- export PATH="$CONDA_DIR/bin:$PATH"
- hash -r
# - cp conda/.condarc $HOME/.condarc
- conda config --add channels conda-forge
- conda config --add channels anaconda
- conda config --set always_yes yes
- conda config --set changeps1 no
# - conda update -n base conda
# - travis_wait 30 source tests/create_conda_environment.sh
- conda update conda
- conda env create --verbose --force --prefix "./$CONDA_ENV_NAME" --file "$ENVIRONMENT_YML"
- source activate ./$CONDA_ENV_NAME
- touch ./$CONDA_ENV_NAME/boto.cfg
- export BOTO_CONFIG="$PWD"/$CONDA_ENV_NAME/boto.cfg
- hash -r
- "echo \"after hash -r which python: $(which python)\""
- "echo \"after hash -r which conda: $(which conda)\""
- echo $PATH
- conda install pip --yes
# - conda install python-annoy --yes
- pip install --upgrade PyScaffold
# - sudo apt-get install -y python-boto
# - pip install -r requirements/requirements.txt
- pip list
- pip install -e .
- python -c "import nltk; nltk.download('punkt')"
script:
- pytest
# after_success:
# - git remote
# - git push --force deploy
# cache:
# pip: true
# directories:
# - $HOME/miniconda