-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
53 lines (45 loc) · 1.52 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
# safelist
branches:
only:
- "master"
os:
- "linux"
- "osx"
compiler:
- "gcc"
- "clang"
sudo: "require"
warnings_are_errors: false
before_install:
- "if [ \"$TRAVIS_OS_NAME\" = \"linux\" ]; then sudo apt-get update -qq; sudo apt-get install libx11-xcb1; fi"
- "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"
- "echo $PWD"
- "git pull --all"
- "export DODO_HOME=$PWD"
install:
- "bash miniconda.sh -b -p $HOME/miniconda"
- "export PATH=\"$HOME/miniconda/bin:$PATH\""
- "hash -r"
- "conda config --set always_yes yes --set changeps1 no"
- "conda update -q conda"
- "conda info -a"
- "source $HOME/miniconda/etc/profile.d/conda.sh"
- "export QT_QPA_PLATFORM='offscreen'"
- "conda create -n p36 python=3.6"
script:
- "conda activate p36"
- "python --version"
- "pip install -r $DODO_HOME/PyDodo/requirements.txt"
- "bash $DODO_HOME/PyDodo/tests/.travis.sh"
- "conda install r-base"
- "conda install r-essentials"
- "conda install r-devtools"
- "conda install r-config"
- "conda install r-testthat"
- "conda install -c conda-forge r-future"
- "conda install -c conda-forge r-geosphere"
- "conda install -c conda-forge r-units"
- "conda install -c r r-irkernel"
- "R CMD check --no-build-vignettes --no-manual $DODO_HOME/rdodo"
env: TRAVIS=true