-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
118 lines (111 loc) · 3.87 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
# Default configuration for use with tic package
# Usually you shouldn't need to change the first part of the file
# DO NOT CHANGE THE CODE BELOW
before_install: R -q -e 'install.packages("remotes"); remotes::install_github("ropenscilabs/tic"); tic::prepare_all_stages(); tic::before_install()'
install: R -q -e 'tic::install()'
after_install: R -q -e 'tic::after_install()'
before_script: R -q -e 'tic::before_script()'
script: R -q -e 'tic::script()'
after_success: R -q -e 'tic::after_success()'
after_failure: R -q -e 'tic::after_failure()'
before_deploy: R -q -e 'tic::before_deploy()'
deploy:
provider: script
script: R -q -e 'tic::deploy()'
on:
all_branches: true
after_deploy: R -q -e 'tic::after_deploy()'
after_script: R -q -e 'tic::after_script()'
# DO NOT CHANGE THE CODE ABOVE
# Custom parts:
# Header
language: r
sudo: false
dist: focal
cache: packages
latex: true
#env
env:
global:
- _R_CHECK_FORCE_SUGGESTS_=false
- MAKEFLAGS=-j2
jobs:
include:
- addons:
apt:
packages:
- libgoogle-perftools-dev
- libprotoc-dev
- libprotobuf-dev
- protobuf-compiler
- graphviz # for call graph in vignette
- librsvg2-dev # for rsvg
env:
- KIND=apt
before_install:
# - cd /tmp && wget -q https://storage.googleapis.com/golang/getgo/installer_linux
# - chmod +x /tmp/installer_linux
# - /tmp/installer_linux
# - source ~/.bash_profile
- go version
- ls -l /usr/lib
- ls -l /usr/lib/go-*
- ls -l /usr/lib/go-1.11
- ls -l /usr/lib/go-1.11/pkg
- ls -l /usr/lib/go-1.11/pkg/tool
- ls -l /usr/lib/go-1.11/pkg/tool/linux_amd64
- ln -sf /usr/lib/go-1.11/pkg/tool/linux_amd64/pprof ~/bin/
- R -q -e 'install.packages("remotes"); remotes::install_github("ropenscilabs/tic"); tic::prepare_all_stages(); tic::before_install()'
- addons:
apt:
packages:
- libunwind8-dev
- libprotoc-dev
- libprotobuf-dev
- protobuf-compiler
- graphviz # for call graph in vignette
- librsvg2-dev # for rsvg
env:
- KIND=github
before_install:
- go version
- go get github.com/google/pprof
- ln -sf ~/go/bin/pprof ~/bin/
- ( cd /tmp && git clone --depth 1 https://github.com/krlmlr/gperftools.git -b f-export-stack )
- ( cd /tmp/gperftools && ./autogen.sh )
- ( cd /tmp/gperftools && ./configure --prefix=${HOME} )
- ( cd /tmp/gperftools && cat config.log )
- ( cd /tmp/gperftools && make )
- ( cd /tmp/gperftools && make install )
- mkdir -p ~/.R
- cp .travis/Makevars ~/.R
- R -q -e 'install.packages("remotes"); remotes::install_github("ropenscilabs/tic"); tic::prepare_all_stages(); tic::before_install()'
- os: osx
env:
- KIND=github
before_install:
- go version
- go get github.com/google/pprof
- ln -sf ~/go/bin/pprof ~/bin/
- brew install graphviz
- ( cd /tmp && git clone --depth 1 https://github.com/krlmlr/gperftools.git -b f-export-stack )
- ( cd /tmp/gperftools && ./autogen.sh )
- ( cd /tmp/gperftools && CFLAGS=-Wno-deprecated-declarations CXXFLAGS=-Wno-deprecated-declarations ./configure --prefix=${HOME} )
- ( cd /tmp/gperftools && cat config.log )
- ( cd /tmp/gperftools && make )
- ( cd /tmp/gperftools && make install )
- mkdir -p ~/.R
- cp .travis/Makevars ~/.R
- R -q -e 'install.packages("remotes"); remotes::install_github("ropenscilabs/tic"); tic::prepare_all_stages(); tic::before_install()'
# - os: osx
# env:
# - KIND=brew
# before_install:
# - brew install google-perftools
# - go get github.com/google/pprof
# - mkdir -p ~/bin
# - ln -sf ~/go/bin/pprof ~/bin/
# - R -q -e 'install.packages("remotes"); remotes::install_github("ropenscilabs/tic"); tic::prepare_all_stages(); tic::before_install()'
#services
services: