-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
.travis.yml
73 lines (73 loc) · 3.08 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
dist: bionic
sudo: required
language: ruby
services:
- docker
notifications:
webhooks: https://coveralls.io/webhook
env:
global:
- COVERALLS_PARALLEL=true
jobs:
include:
- stage: testes
name: "Testes RUBY"
before_install:
- sudo apt-get update -qq
- sudo bin/instaladores/dependencias_execucao_install.sh && sudo bin/instaladores/dependencias_desenvolvimento_install.sh
- sudo bin/instaladores/pandoc_install.sh -q
before_script:
- pandoc -v
- git clone --depth=1 https://github.com/abntex/trabalho-academico-limarka.git modelo-oficial
script:
- bundle exec rake spec:ruby
- bundle exec rake cucumber:ruby
- stage: testes
name: "Testes com LaTeX (PDFs)"
cache:
directories:
- $HOME/.TinyTeX
before_install:
- sudo apt-get update -qq
- sudo bin/instaladores/dependencias_execucao_install.sh && sudo bin/instaladores/dependencias_desenvolvimento_install.sh
- sudo bin/instaladores/pandoc_install.sh -q
- sudo bin/instaladores/tinytex_install.sh
- export PATH=$PATH:~/.TinyTeX/bin/x86_64-linux
before_script:
- tlmgr --version && tlmgr show --only-installed
- latexmk -v
- xelatex -v
- pdftotext -v
- pandoc -v
- git clone --depth=1 https://github.com/abntex/trabalho-academico-limarka.git modelo-oficial
script:
- bundle exec rspec spec/dependencias/latex_spec.rb
- bundle exec rspec spec/simples_spec.rb
- bundle exec rake spec:pdf
- bundle exec rake cucumber:pdf
after_failure:
- cat test/latex/exemplo-minimo/xxx-Monografia.log
- cat tmp/simples/xxx-trabalho-academico.tex
- cat tmp/simples/xxx-trabalho-academico.log
- cat tmp/simples/xxx-trabalho-academico.txt
- stage: testes
name: "Deploy docker and rubygems"
install: skip
script: echo tag $TRAVIS_TAG slug $TRAVIS_REPO_SLUG branch $TRAVIS_BRANCH
deploy:
- provider: rubygems
api_key:
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=
on:
branch: master
- provider: script
script: bin/build-docker.sh && bin/deploy-docker.sh
on:
repo: abntex/limarka
branch: master
- provider: script
script: bin/build-docker.sh && bin/deploy-docker.sh $TRAVIS_TAG
on:
tags: true
after_script:
- cat /root/.TinyTeX/texmf-var/web2c/tlmgr.log