-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
59 lines (59 loc) Β· 1.61 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
language: r
warnings_are_errors: true
cache: packages
addons:
apt:
sources:
- sourceline: ppa:chris-lea/libsodium
packages:
- libsecret-1-dev
- libsodium-dev
env:
global:
- R_CHECK_ARGS="--no-manual --as-cran"
matrix:
include:
- os: linux
r: oldrel
- os: linux
r: release
before_deploy:
- Rscript -e 'remotes::install_github("lockedatapublished/lockedatapkg")'
- Rscript -e 'remotes::install_github("r-lib/pkgdown")'
- Rscript -e 'install.packages("pkgload")'
deploy:
provider: script
script: Rscript -e 'pkgdown::deploy_site_github(verbose = TRUE, run_dont_run= TRUE, tarball = paste0("hubspot","_", as.character(desc::desc_get_version()),".tar.gz"))'
skip_cleanup: true
- os: linux
r: devel
- os: osx
r: release
fortran: false
env: VCR_TURN_OFF=true
r_packages:
- covr
script:
- R CMD build .
- R CMD check *tar.gz
- Rscript -e 'rep=testthat::MultiReporter;testthat::test_file("tests/testthat/test-oauth.R",
reporter = rep$new(reporters = list(testthat::SummaryReporter$new(), testthat::FailReporter$new())))'
after_success:
- Rscript -e 'covr::codecov()'
stages:
- name: deploy
if: branch = master
- name: before_install
if: fork = false
notifications:
webhooks:
urls:
- https://api.netlify.com/build_hooks/5c485865fa3a0d0176c6be7a
on_success: always
on_failure: never
on_start: never
on_cancel: never
on_error: never
before_install:
- openssl aes-256-cbc -K $encrypted_3c89e125833d_key -iv $encrypted_3c89e125833d_iv -in secrets.tar.enc -out tests/testthat/secrets.tar -d
- tar xvf tests/testthat/secrets.tar