-
Notifications
You must be signed in to change notification settings - Fork 38
/
.travis.yml
59 lines (49 loc) · 1.58 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
59
language: r
sudo: true
dist: trusty
addons:
apt:
packages:
- python3
#- python3-numpy
warnings_are_errors: true
#r_binary_packages:
# - testthat
# - quanteda
r_packages:
- covr
#r_github_packages:
# - kbenoit/quanteda
#before_install:
# - source travis_install.sh
# install
## in this section, we attempt to install conda, and then install conda spacy in virtual environment
before_script:
## the conda installation instruction comes from
## https://conda.io/docs/user-guide/tasks/use-conda-with-travis-ci.html
- sudo apt-get update
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- rm miniconda.sh
- 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
- R CMD INSTALL .
- R -e 'spacyr::spacy_install(prompt=FALSE, pip = TRUE)'
# The following lines will be removed once issue-171 is merged
# - source ~/miniconda/etc/profile.d/conda.sh
# - conda activate spacy_condaenv
# - python -m spacy link en_core_web_sm en
# - conda deactivate
# - conda install -n spacy_condaenv -c omgarcia gcc-6 # https://github.com/conda/conda/issues/8415
- R -e 'spacyr::spacy_download_langmodel(model="en")' # create a link 'en'
- R -e 'spacyr::spacy_download_langmodel(model="de")'
env:
global:
- R_CHECK_ARGS="--no-build-vignettes"
- LINTR_COMMENT_BOT=false
after_success:
- Rscript -e 'library(covr);codecov()'