forked from f0nzie/rTorch.old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (30 loc) · 980 Bytes
/
.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
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: R
# cache: packages
warnings_are_errors: false
env:
global:
- PYTORCH_VERSION="1.1"
r-packages:
- logging
- reticulate
- jsonlite
- R6
- rstudioapi
- data.table
before_script:
# do not need these commented lines
# - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update
- sudo apt-get install gcc-4.9
# - sudo apt-get install libstdc++6 # needed by PyTorch
- 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
- rm miniconda.sh
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- R CMD INSTALL .
- R -e 'rTorch::install_pytorch(method="conda", version=Sys.getenv("PYTORCH_VERSION"), channel="pytorch", conda_python_version="3.6")'