limarka 20.6.8.pre.348 → 20.6.8.pre.355

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f8c674a8f669d75a6b51139911b611656e52a129244f6e9b0f56705efc44657
4
- data.tar.gz: ac77c3969dcb50b11acd7202bd94a96e30635128354a996d487cc1ba4aa7af64
3
+ metadata.gz: 7cdafa677efa2fd346b9dac52a945a5893dab02f72fed588e57370227bedb2c5
4
+ data.tar.gz: 371dcc906bcad44cc3ae5aa9172c31d9a55d63ffb503f92613ffae3c18c288a3
5
5
  SHA512:
6
- metadata.gz: b2c2bed05176c235c153b4c7fa88331b2d031a4217ac25c3aec189bc3de251ce7415a9ee8ea4d0cc4673ffd2802ee3817e937c7dca69d8be5117d58bb789ef31
7
- data.tar.gz: 914c8eb6f9e334d3f409f23d536c044c49065aa7e7856ca2bce683833f2d76664e9273c3edad472a79de3e7fec84729305b9bccb8edf63d6180244e2e1efe20a
6
+ metadata.gz: dd682babf15c67d4e17a8d845060ae6ced3f3865bdee0dcf15992a51227eb753711a37e46d227744cac6b7efbcf5b1654e8b8777c4d066f3cb235b59e2a6e511
7
+ data.tar.gz: f5b836fd5727ea92f5b1323d36b45d7de6d03252c08f18c46e0d19ac14002d65138d010b3e2b29d1ee6048e337b19546b6f68a45145e11ad96c241d3f4f35779
@@ -11,29 +11,35 @@ env:
11
11
  jobs:
12
12
  include:
13
13
  - stage: testes
14
+ name: "Testes RUBY"
14
15
  before_install:
15
16
  - sudo apt-get update -qq
16
- - bin/instalador.sh -dp
17
+ - bin/instaladores/dependencias_execucao_install.sh && bin/instaladores/dependencias_desenvolvimento_install.sh
18
+ - bin/instaladores/pandoc_install.sh -q
17
19
  before_script:
18
20
  - pandoc -v
19
- - git clone https://github.com/abntex/trabalho-academico-limarka.git modelo-oficial
21
+ - git clone --depth=1 https://github.com/abntex/trabalho-academico-limarka.git modelo-oficial
20
22
  script:
21
23
  - bundle exec rake spec:ruby
22
24
  - bundle exec rake cucumber:ruby
23
25
  - stage: testes
26
+ name: "Testes com LaTeX (PDFs)"
24
27
  cache:
25
28
  directories:
26
29
  - $HOME/.TinyTeX
27
30
  before_install:
28
31
  - sudo apt-get update -qq
29
- - export PATH=$PATH:~/.TinyTeX2/bin/x86_64-linux
30
- - bin/instalador.sh -dptc
32
+ - bin/instaladores/dependencias_execucao_install.sh && bin/instaladores/dependencias_desenvolvimento_install.sh
33
+ - bin/instaladores/pandoc_install.sh -q
34
+ - bin/instaladores/tinytex_install.sh
35
+ - export PATH=$PATH:~/.TinyTeX/bin/x86_64-linux
31
36
  before_script:
37
+ - tlmgr --version && tlmgr show --only-installed
32
38
  - latexmk -v
33
39
  - xelatex -v
34
40
  - pdftotext -v
35
41
  - pandoc -v
36
- - git clone https://github.com/abntex/trabalho-academico-limarka.git modelo-oficial
42
+ - git clone --depth=1 https://github.com/abntex/trabalho-academico-limarka.git modelo-oficial
37
43
  script:
38
44
  - bundle exec rspec spec/dependencias/latex_spec.rb
39
45
  - bundle exec rspec spec/simples_spec.rb
@@ -52,23 +58,15 @@ jobs:
52
58
  api_key:
53
59
  secure: YLuHbYsHGPTHoXIBr874CbIAn0/z0H0B8aW39NDQIwk7SMsd4HBgTq/6zgtUVLsp3AO9daHzk0FGcMKAOh9fxFzUuA5MmQTdQA8A3VI7JRM2BEVl8x6Hw2bjMTYMCAVGNGZT9oFKIq2lHByf9zDoQlT7CobKCY3Ofa0MTKcGgvfnqaW+VGosKrcYyZ9HPxBkH8SGnzef1joIcdtWOi3HHV28AacgRslWEkwTmYrsQcamTafQazuIbdhQ5UzvKS6PuIX56wvP6ugy9QTPtsU82x7oaDk+5e8ULJ2BMu/jwM4H3/aJ8ASg17a2EeIJRFckjQpMc+P3WCnbTu4tV2NqsXRzNmTcqwsM4bHTX2/WPlvVNwmTE9f5wSR9uCoQbDvCimCoo0miAE7xMbik0zvWVYZFtIcw3Rn+F+36jXXzY5xLSSYIZgJATbQgnNrYzCs54mUtmF+kUhYzDov4VfYcbc4ihEP6A/AdxvxuO4/xkGIsxlzxjCSw/Bs369zDXO5uUtORSQsLYPW4gZM+p++UMR63l7Radaq45HX0AVtkg9oWMj/UO8XCE2nMEUelcfeseuyy8ZB/Ga97KFVQH/LZLJYYU8+qDXQdfe8oWOlthuOA2QKyErDWQ9YWW2LVRhTacVjLBkYeChgpCReT1FDW982jfSWFCJTtb/XkM+D/90U=
54
60
  on:
55
- branches:
56
- only:
57
- - master
58
- - provider: rubygems
59
- api_key:
60
- secure: YLuHbYsHGPTHoXIBr874CbIAn0/z0H0B8aW39NDQIwk7SMsd4HBgTq/6zgtUVLsp3AO9daHzk0FGcMKAOh9fxFzUuA5MmQTdQA8A3VI7JRM2BEVl8x6Hw2bjMTYMCAVGNGZT9oFKIq2lHByf9zDoQlT7CobKCY3Ofa0MTKcGgvfnqaW+VGosKrcYyZ9HPxBkH8SGnzef1joIcdtWOi3HHV28AacgRslWEkwTmYrsQcamTafQazuIbdhQ5UzvKS6PuIX56wvP6ugy9QTPtsU82x7oaDk+5e8ULJ2BMu/jwM4H3/aJ8ASg17a2EeIJRFckjQpMc+P3WCnbTu4tV2NqsXRzNmTcqwsM4bHTX2/WPlvVNwmTE9f5wSR9uCoQbDvCimCoo0miAE7xMbik0zvWVYZFtIcw3Rn+F+36jXXzY5xLSSYIZgJATbQgnNrYzCs54mUtmF+kUhYzDov4VfYcbc4ihEP6A/AdxvxuO4/xkGIsxlzxjCSw/Bs369zDXO5uUtORSQsLYPW4gZM+p++UMR63l7Radaq45HX0AVtkg9oWMj/UO8XCE2nMEUelcfeseuyy8ZB/Ga97KFVQH/LZLJYYU8+qDXQdfe8oWOlthuOA2QKyErDWQ9YWW2LVRhTacVjLBkYeChgpCReT1FDW982jfSWFCJTtb/XkM+D/90U=
61
- on:
62
- tag: true
63
- all_branches: true
61
+ branch: master
64
62
  - provider: script
65
63
  script: bin/build-docker.sh && bin/deploy-docker.sh
66
64
  on:
67
65
  repo: abntex/limarka
68
- branches:
69
- only:
70
- - master
66
+ branch: master
71
67
  - provider: script
72
68
  script: bin/build-docker.sh && bin/deploy-docker.sh $TRAVIS_TAG
73
69
  on:
74
70
  tags: true
71
+ after_script:
72
+ - cat /root/.TinyTeX/texmf-var/web2c/tlmgr.log
@@ -52,14 +52,21 @@ done
52
52
  if [ "$codename" = "bionic" ]; then
53
53
 
54
54
  if [ -n "$dependencias" ]; then
55
- $dry sudo apt-get install -y -qq \
55
+ $dry sudo apt-get install -y -qq --no-install-recommends \
56
56
  language-pack-pt \
57
57
  locales \
58
58
  pdfgrep \
59
59
  poppler-utils \
60
- ruby-full \
60
+ ruby-bundler \
61
+ ruby-json \
62
+ ruby-ffi \
63
+ libffi-dev \
61
64
  unzip \
62
- xclip
65
+ xclip \
66
+ wget \
67
+ perl \
68
+ luajit \
69
+ python
63
70
  fi
64
71
 
65
72
  if [ -n "$tex" ]; then
@@ -80,33 +87,42 @@ if [ "$codename" = "bionic" ]; then
80
87
  abntex2 \
81
88
  babel-portuges \
82
89
  bookmark \
90
+ caption \
83
91
  enumitem \
84
92
  epstopdf-pkg \
85
- ifetex \
86
93
  lastpage \
87
94
  lipsum \
88
95
  listings \
89
- ltcaption \
90
96
  memoir \
91
97
  microtype \
92
98
  pdflscape \
93
99
  pdfpages \
100
+ psnfss \
101
+ shipunov \
102
+ texliveonfly \
94
103
  textcase \
95
104
  xcolor
96
105
 
97
106
  tlmgr option -- autobackup 0
98
107
  else
99
108
  $dry wget -qO- "https://yihui.name/gh/tinytex/tools/install-unx.sh" \| sh
100
- $dry tlmgr install abntex2 \
109
+ $dry tlmgr install \
110
+ abntex2 \
101
111
  babel-portuges \
112
+ bookmark \
113
+ caption \
102
114
  enumitem \
103
- ifetex \
115
+ epstopdf-pkg \
104
116
  lastpage \
105
117
  lipsum \
106
118
  listings \
107
119
  memoir \
108
120
  microtype \
121
+ pdflscape \
109
122
  pdfpages \
123
+ psnfss \
124
+ shipunov \
125
+ texliveonfly \
110
126
  textcase \
111
127
  xcolor
112
128
  $dry tlmgr option -- autobackup 0
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env sh
2
+
3
+ sudo apt-get install -y -qq \
4
+ pdfgrep \
5
+ poppler-utils
@@ -3,6 +3,4 @@
3
3
  sudo apt-get install -y -qq \
4
4
  language-pack-pt \
5
5
  locales \
6
- pdfgrep \
7
- poppler-utils \
8
6
  unzip
@@ -11,7 +11,7 @@ while getopts "q" opt; do
11
11
  esac
12
12
  done
13
13
 
14
- if [ $quiet eq 1 ]
14
+ if [ $quiet eq 1 ]; then
15
15
  wget -nv $PANDOC_DEB
16
16
  else
17
17
  wget -c $PANDOC_DEB
@@ -9,16 +9,23 @@ if [ $tex_em_cache -eq 1 ]; then
9
9
  : #echo TinyTeX não será instalado.
10
10
  else
11
11
  wget -qO- "https://yihui.name/gh/tinytex/tools/install-unx.sh" | sh
12
- tlmgr install abntex2 \
12
+ tlmgr install \
13
+ abntex2 \
13
14
  babel-portuges \
15
+ bookmark \
16
+ caption \
14
17
  enumitem \
15
- ifetex \
18
+ epstopdf-pkg \
16
19
  lastpage \
17
20
  lipsum \
18
21
  listings \
19
22
  memoir \
20
23
  microtype \
24
+ pdflscape \
21
25
  pdfpages \
26
+ psnfss \
27
+ shipunov \
28
+ texliveonfly \
22
29
  textcase \
23
30
  xcolor
24
31
  tlmgr option -- autobackup 0
@@ -5,37 +5,18 @@ LABEL maintainer="eduardo.ufpb@gmail.com"
5
5
  # Tentamos seguir as melhores práticas:
6
6
  # https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
7
7
 
8
- RUN apt-get update && apt-get install -y -qq \
9
- build-essential \
10
- fontconfig \
11
- locales \
12
- pdfgrep \
13
- poppler-utils \
14
- unzip \
15
- wget
8
+ WORKDIR /tmp
9
+ COPY bin/instaladores/dependencias_execucao_install.sh \
10
+ bin/instaladores/pandoc_install.sh \
11
+ bin/instaladores/tinytex_install.sh \
12
+ .
16
13
 
17
- # Instala tinytex (/root/.TinyTex)
18
- RUN wget -qO- "https://yihui.name/gh/tinytex/tools/install-unx.sh" | sh
19
- ENV PATH="/root/bin:${PATH}"
14
+ RUN apt-get update && dependencias_execucao_install.sh
20
15
 
21
- # instala bibliotecas para o abntex2/limarka
22
- RUN tlmgr install \
23
- abntex2 \
24
- babel-portuges \
25
- bookmark \
26
- enumitem \
27
- epstopdf-pkg \
28
- ifetex \
29
- lastpage \
30
- lipsum \
31
- listings \
32
- ltcaption \
33
- memoir \
34
- microtype \
35
- pdflscape \
36
- pdfpages \
37
- textcase \
38
- xcolor
16
+ # Instala tinytex (/root/.TinyTex)
17
+ # e bibliotecas para o abntex2/limarka
18
+ RUN bin/instaladores/tinytex_install.sh
19
+ ENV PATH="/root/bin:~/.TinyTeX/bin/x86_64-linux:${PATH}"
39
20
 
40
21
  # Configurando o idioma português #175: https://hub.docker.com/_/debian/#locales
41
22
  RUN rm -rf /var/lib/apt/lists/* \
@@ -43,7 +24,4 @@ RUN rm -rf /var/lib/apt/lists/* \
43
24
  ENV LANG pt_BR.UTF8
44
25
 
45
26
  # Instalação do pandoc
46
- WORKDIR /tmp
47
- RUN wget https://github.com/jgm/pandoc/releases/download/2.7.3/pandoc-2.7.3-1-amd64.deb \
48
- && dpkg -i pandoc-*.deb \
49
- && rm pandoc-*.deb
27
+ RUN pandoc_install.sh
@@ -58,6 +58,9 @@ module Limarka
58
58
  def compila
59
59
  Dir.chdir(options[:output_dir]) do
60
60
  basename = File.basename(texto_tex_file, '.tex')
61
+ if system ("whereis texliveonfly")
62
+ system "texliveonfly -c xelatex -f #{basename}", :out=>'xxx-texliveonfly-std.txt'
63
+ end
61
64
  system "latexmk --quiet --xelatex -f #{basename}", :out=>'xxx-latexmk-std.txt', :err=>'xxx-latexmk-erros.txt'
62
65
  if (usa_pdftotext) then
63
66
  system "pdftotext -enc UTF-8 #{basename}.pdf"
@@ -50,5 +50,6 @@ Gem::Specification.new do |spec|
50
50
  spec.add_dependency "pandoc_abnt", "~> 2.0.0"
51
51
  spec.add_dependency "guard"
52
52
  spec.add_dependency "guard-shell"
53
+ spec.add_dependency "guard-rake"
53
54
 
54
55
  end
@@ -0,0 +1,28 @@
1
+ ERB_TEMPLATE = <<~HEREDOC
2
+ guard :shell do
3
+ <% all_tasks.each do |t, files| %>
4
+ watch(%r{^(<%= files.join('|') %>)$}) do |m|
5
+ system("rake <%= t %>")
6
+ end
7
+ <% end %>
8
+ end
9
+ HEREDOC
10
+
11
+ desc "Generates a Guardfile from Rake tasks"
12
+ task :guard do
13
+ app = Rake::application
14
+ app.init
15
+ app.load_rakefile
16
+
17
+ all_tasks = {}
18
+ app.tasks.each do |t|
19
+ t.sources.each do |src|
20
+ if File.file?(src) then
21
+ all_tasks[t.name] = [] unless all_tasks[t.name]
22
+ all_tasks[t.name] << src
23
+ end
24
+ end
25
+ end
26
+ template = ERB.new(ERB_TEMPLATE)
27
+ File.write('Guardfile', template.result(binding))
28
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: limarka
3
3
  version: !ruby/object:Gem::Version
4
- version: 20.6.8.pre.348
4
+ version: 20.6.8.pre.355
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo de Santana Medeiros Alexandre
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-08 00:00:00.000000000 Z
11
+ date: 2020-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -262,6 +262,20 @@ dependencies:
262
262
  - - ">="
263
263
  - !ruby/object:Gem::Version
264
264
  version: '0'
265
+ - !ruby/object:Gem::Dependency
266
+ name: guard-rake
267
+ requirement: !ruby/object:Gem::Requirement
268
+ requirements:
269
+ - - ">="
270
+ - !ruby/object:Gem::Version
271
+ version: '0'
272
+ type: :runtime
273
+ prerelease: false
274
+ version_requirements: !ruby/object:Gem::Requirement
275
+ requirements:
276
+ - - ">="
277
+ - !ruby/object:Gem::Version
278
+ version: '0'
265
279
  description: Com essa ferramenta você poderá escrever sua monografia, dissertação
266
280
  ou tese utilizando Markdown (linguagem mais simples que Latex).
267
281
  email:
@@ -288,7 +302,8 @@ files:
288
302
  - bin/console
289
303
  - bin/deploy-docker.sh
290
304
  - bin/instalador.sh
291
- - bin/instaladores/dependencias_install.sh
305
+ - bin/instaladores/dependencias_desenvolvimento_install.sh
306
+ - bin/instaladores/dependencias_execucao_install.sh
292
307
  - bin/instaladores/pandoc_install.sh
293
308
  - bin/instaladores/tinytex_install.sh
294
309
  - bin/setup
@@ -346,6 +361,7 @@ files:
346
361
  - lib/limarka/trabalho.rb
347
362
  - lib/limarka/version.rb
348
363
  - limarka.gemspec
364
+ - rakelib/guard.rake
349
365
  - referencias.bib
350
366
  homepage: https://github.com/abntex/limarka
351
367
  licenses: