forked from keyATM/keyATM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (29 loc) · 1.17 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
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
# env option to avoid `Files in the 'vignettes' directory but no files in 'inst/doc'` warning
language: r
r:
- oldrel
- release
# - devel
cache: packages
sudo: true
warnings_are_errors: false
os:
- linux
- osx
latex: false
env:
global:
- R_CHECK_ARGS="--no-build-vignettes"
# Manually install some packages and C++14
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo add-apt-repository -y ppa:cran/poppler ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo sudo apt-get install -y libpoppler-cpp-dev ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then mkdir -p ~/.R ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then echo "CXX14FLAGS=-O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -Wno-macro-redefined" >> ~/.R/Makevars ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then echo "CXX14=g++ -std=c++1y -fext-numeric-literals -fPIC" >> ~/.R/Makevars ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then Rscript -e 'install.packages(c("devtools", "ndjson"))' ; fi
notifications:
slack: ${{ secrets.TRAVIS_SLACK }}
on_success: never
on_failure: always