-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
98 lines (84 loc) · 2.68 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
# The language 'r' is currently unsupported on the Windows Build Environment.
language: R
# cache: packages
r:
- 4.0.2
- 3.6.3
# - 3.5.3
# - 3.4.3
warnings_are_errors: false
os:
- linux
- osx
# # -- this worked before --
# env:
# - PYTHON_V="3.6" PYTORCH_V="1.1"
# - PYTHON_V="3.7" PYTORCH_V="1.1"
# - PYTHON_V="3.8" PYTORCH_V="1.1"
# # ----------------------------------------------
# # this matrix generates 36 jobs
# env:
# matrix:
# # Python 3.6
# - PYTHON_V="3.6" PYTORCH_V="1.1"
# - PYTHON_V="3.6" PYTORCH_V="1.2"
# - PYTHON_V="3.6" PYTORCH_V="1.4"
# - PYTHON_V="3.6" PYTORCH_V="1.6"
# # Python 3.7
# - PYTHON_V="3.7" PYTORCH_V="1.1"
# - PYTHON_V="3.7" PYTORCH_V="1.2"
# - PYTHON_V="3.7" PYTORCH_V="1.4"
# - PYTHON_V="3.7" PYTORCH_V="1.6"
# # Python 3.8
# - PYTHON_V="3.8" PYTORCH_V="1.6"
# this matrix generates 2 jobs
env:
matrix:
- PYTHON_V="3.7" PYTORCH_V="1.6"
# - PYTHON_V="3.7" PYTORCH_V="1.1"
# - PYTHON_V="3.7" PYTORCH_V="1.2"
# - PYTHON_V="3.7" PYTORCH_V="1.4"
# - PYTHON_V="3.7" PYTORCH_V="1.5""
# - PYTHON_V="3.7" PYTORCH_V="1.6"
r-packages:
- reticulate
- jsonlite
- R6
- rstudioapi
- data.table
before_script:
# - sudo apt-get update
# new lines with breaks using |
- |
if [ "$TRAVIS_OS_NAME" = "linux" ];
then wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- |
if [ "$TRAVIS_OS_NAME" = "osx" ];
then wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- export LD_LIBRARY_PATH=${TRAVIS_HOME}/miniconda/lib
- hash -r
- rm miniconda.sh
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda init bash
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then conda install nomkl;fi
- conda info -a
- R CMD INSTALL .
- |
if [ "$TRAVIS_OS_NAME" = "linux" ];
then sudo rm /usr/lib/x86_64-linux-gnu/libstdc++.so.6;
fi
- # new lines without hard breaks using >
- >
R -e 'rTorch:::install_conda(
package=paste0("pytorch=", Sys.getenv("PYTORCH_V")),
envname="r-torch", conda="auto",
conda_python_version=Sys.getenv("PYTHON_V"),
pip=FALSE, channel="pytorch",
extra_packages=c("torchvision", "cpuonly", "matplotlib", "pandas"))'
# - R -e 'rTorch:::install_conda(package="pytorch=1.6", envname="r-torch", conda="auto", conda_python_version="3.6", pip=FALSE, channel="pytorch", extra_packages=c("torchvision", "cpuonly", "matplotlib", "pandas"))'