forked from OHDSI/Cyclops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (49 loc) · 1.8 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
# Run Travis CI for R using https://eddelbuettel.github.io/r-travis/
language: c
sudo: required
dist: trusty
branches:
except:
- /^*-v[0-9]/
matrix:
include:
# gcc default
- compiler: gcc
# gcc 6
- compiler: gcc
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
before_script:
- export CC=gcc-6
- export CXX=g++-6
- mkdir -p ~/.R
- echo 'CC=gcc-6' > ~/.R/Makevars
- echo 'CXX=g++-6' >> ~/.R/Makevars
- echo 'CXX1X=g++-6' >> ~/.R/Makevars
- echo 'CXX11=g++-6' >> ~/.R/Makevars
- echo 'PKG_CXXFLAGS= -std=c++14 -s -g1 -Wno-ignored-attributes -Wno-deprecated-declarations' >> ~/.R/Makevars
before_install:
- curl -OLs https://eddelbuettel.github.io/r-travis/run.sh && chmod 0755 run.sh
# add Eddelbuttel launchpad repo
- sudo add-apt-repository -y ppa:edd/misc
- ./run.sh bootstrap
install:
- ./run.sh install_aptget r-cran-rcpp r-cran-bit r-cran-ff r-cran-ffbase r-cran-rcppparallel r-cran-rcppeigen r-cran-ggplot2 r-cran-testthat r-cran-gnm r-cran-devtools
- ./run.sh install_r drat covr microbenchmark
- export PKG_NAME=$(Rscript -e 'cat(paste0(devtools::as.package(".")$package))')
- export PKG_TARBALL=$(Rscript -e 'pkg <- devtools::as.package("."); cat(paste0(pkg$package,"_",pkg$version,".tar.gz"))')
script:
- ./run.sh run_tests
after_success:
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && perl compare_versions --tag && bash deploy.sh && curl --data "build=true" -X POST https://registry.hub.docker.com/u/ohdsi/broadsea-methodslibrary/trigger/f0b51cec-4027-4781-9383-4b38b42dd4f5/
after_failure:
- ./run.sh dump_logs
notifications:
email:
on_success: change
on_failure: change