forked from leifeld/dna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·107 lines (107 loc) · 3 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
dist: bionic
matrix:
include:
- name: "DNA Jar"
language: java
script:
- make dna
- if jar -tvf ./output/dna*.jar | grep 'Dna\.class'; then exit 0; else exit 1; fi
- if jar -tvf ./output/dna*.jar | grep 'ExporterR\.class'; then exit 0; else exit 1; fi
- name: "manual"
language: r
sudo: required
cache: packages
before_install:
- |
tlmgr install xcolor colortbl koma-script placeins ltablex soul multirow wrapfig \
float tabu varwidth threeparttable ulem adjustbox pgf tikz-3dplot bigfoot cm-super \
collectbox pgf tikz-3dplot bigfoot cm-super
- cd rDNA
addons:
apt:
packages:
- ghostscript
- libudunits2-dev
- poppler-utils
r_packages:
- devtools
- ggplot2
- gridExtra
- kableExtra
- knitr
- LexisNexisTools
- quanteda.textmodels
- statnet
- igraph
- rJava
r_github_packages:
- quanteda/quanteda.corpora
before_script:
- cd ..
- make dna
- cp ./output/dna-*.jar ./rDNA/inst/extdata/
- make rDNA
- R CMD INSTALL ./output/*.tar.gz
- make manual
script:
- actualsize=$(pdftotext "./output/dna-manual.pdf" - | wc -w);
echo pdf contains $actualsize words;
if [ $actualsize -gt 30000 ];
then exit 0;
else exit 1;
fi
# Test rDNA
- name: "rDNA: devel"
language: r
sudo: required
cache: packages
r:
- devel
before_install:
- cd rDNA
addons:
apt:
packages:
- r-cran-rjava
- libudunits2-dev
r_packages:
- devtools
- igraph
before_script:
- cd ..
- make dna
- cp ./output/dna-*.jar ./rDNA/inst/extdata/
- cd rDNA
script:
- Rscript -e "install.packages(c('rJava', 'ggraph'))" # Some packages need to be installed for every R version
- R CMD build .
- R CMD check *tar.gz
after_success:
- Rscript -e 'covr::codecov()'
- name: "rDNA: release"
language: r
sudo: required
cache: packages
r:
- release
before_install:
- cd rDNA
addons:
apt:
packages:
- r-cran-rjava
- libudunits2-dev
r_packages:
- devtools
- igraph
before_script:
- cd ..
- make dna
- cp ./output/dna-*.jar ./rDNA/inst/extdata/
- cd rDNA
script:
- Rscript -e "install.packages(c('rJava', 'ggraph'))"
- R CMD build .
- R CMD check *tar.gz
after_success:
- Rscript -e 'covr::codecov()'