-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.travis.yml
71 lines (63 loc) · 2.83 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
language: r
sudo: false
env:
global:
- BNET_FORCE_NNMF_TESTS=1 BNET_FORCE_AUTOENCODER_TESTS=1 BNET_FORCE_UMAP_TESTS=1 _R_CHECK_INSTALL_DEPENDS_=true MAKEFLAGS="-j 2"
# for pcaL1 and rgl:
addons:
apt:
packages:
- coinor-libclp-dev
- mesa-common-dev
- libglu1-mesa-dev
- python3
- python3-pip
- python3-setuptools
r:
- oldrel
- release
- devel
cache:
packages: true
directories:
- $HOME/.keras
- $HOME/.cache/pip
# r_check_args:
# "--run-donttest --run-dontrun --timings"
before_install:
# Keras and TensorFlow stuff
# pip was guilty of the failing travis build!!!
# - pip2.7 install --upgrade --ignore-installed --user pip
# - pip2.7 install --upgrade --ignore-installed --user travis
# - pip2.7 install --upgrade --ignore-installed --user setuptools
# - pip2.7 install --upgrade --ignore-installed --user wheel
# - pip2.7 install --upgrade --ignore-installed --user virtualenv
# - pip2.7 install --upgrade --ignore-installed --user keras
# - pip2.7 install --upgrade --ignore-installed --user h5py
# - pip2.7 install --upgrade --ignore-installed --user pyyaml
# - pip2.7 install --upgrade --ignore-installed --user requests
# - pip2.7 install --upgrade --ignore-installed --user Pillow
# - pip2.7 install --upgrade --ignore-installed --user scipy
# - pip2.7 install --upgrade --ignore-installed --user umap-learn
# - pip3 install --upgrade --ignore-installed --user pip
- python3 -m pip install --upgrade pip
# - pip3 install --upgrade --ignore-installed --user travis setuptools wheel virtualenv h5py pyyaml requests Pillow scipy umap-learn tensorflow keras
- pip3 install --upgrade --user virtualenv
# Install R packages
- Rscript -e "update.packages(ask = FALSE)"
- Rscript -e "if (!'covr' %in% rownames(installed.packages())) install.packages('covr')"
- Rscript -e "if (!'rgl' %in% rownames(installed.packages())) install.packages('rgl')"
- Rscript -e "if (!'roxygen2' %in% rownames(installed.packages())) install.packages('roxygen2')"
- Rscript -e "if (!'shiny' %in% rownames(installed.packages())) install.packages('shiny')"
# - Rscript -e "if (!'tensorflow' %in% rownames(installed.packages())) install.packages('tensorflow')"
# Set CXX1X for R-devel, as R-devel does not detect CXX1X support for gcc 4.6.3,
# - if [[ "$TRAVIS_R_VERSION_STRING" = 'devel' ]]; then mkdir ~/.R && echo 'CXX1X=g++ -std=c++0x -g -O2 -fPIC' > ~/.R/Makevars; fi
before_script:
# - Rscript -e "devtools::document()"
- Rscript -e 'reticulate::py_install("umap-learn")'
- Rscript -e "tensorflow::install_tensorflow()"
- Rscript -e "keras::install_keras()"
- Rscript -e 'library(tensorflow); print(tf$Session()$run(tf$constant("hello")))'
# Only report coverage for the release version
after_success:
- test $TRAVIS_R_VERSION_STRING = 'release' && Rscript -e 'covr::codecov()'