forked from pandoc-scholar/pandoc-scholar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (44 loc) · 1.85 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
sudo: false
language: minimal
env:
- PANDOC_VERSION=2.9.1.1-1
addons:
apt:
packages:
- texlive-xetex
- texlive-latex-recommended
- texlive-fonts-recommended
- texlive-latex-extra
- texlive-fonts-extra
- lmodern
before_install:
# make archive
- make dist/pandoc-scholar.tar.gz
# install pandoc
- DOWNLOAD_URL="https://github.com/jgm/pandoc/releases/download"
- mkdir -p ${HOME}/.local
- travis_retry curl --location --silent
${DOWNLOAD_URL}/${PANDOC_VERSION%-*}/pandoc-${PANDOC_VERSION}-amd64.deb
-o /tmp/pandoc.deb
- ar p /tmp/pandoc.deb data.tar.xz | tar xvJ --strip-components 2 -C $HOME/.local/
# Set path to include pandoc executable
- PATH="${HOME}/.local/bin:$PATH"
install:
- tar zvxf dist/pandoc-scholar.tar.gz
script:
# Make sure that all formats are generated without error
- "(cd pandoc-scholar && BIBLIOGRAPHY_FILE=example/bibliography.bib make all)"
before_deploy:
- make dist-clean
- make archives
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: haLjV/JczrA3wfsdoBhFQ28oHCON0htnajyi0EQYJtdzo1trwH1loDHwMvDDSNA2Vuc386CfF1vTUn03cnl6WeAJ9xFKROrHyIwORm4WQqFbmccI3xVZkF+Km7FcLQmOQI0higIaZuvhE/vgHbZ5CLd6Cnu+97MmNj74+sRuI76ylGELhXRohjyKXATUsZYT3VAYnmmfTyhFECsEUS6h8QpZlbM/S8aU7jJflivVQUqDwtq8mHk7iCOWNaFcJoQFF0uPwPZfvUNFB67ksd3+7rGh2YRRNYjSLcWPqeUdgT0n6u6k5gOuvQqAEAh2A91TsfsNxzA9PUI0bUSVowFCQpp4uxJIjIYe7bYFy+hkvwZGmNxEFRfV6xHtemi+gKJob9FmMhpSuxaJ5JWI3TJ9bK/uqdhD8Jf+BvE9jslOUXppSZEJ7GopMeNHw5XlWzzAQD9Cf7SzlJ1rCl699cOF3kl+Y0dijPrU4b7KDKIcvKqdY6pu/MTX5unfx9Dn632fjLggIGWRveE20dXEVTYrbolTKMHa3Uqxp59JVxNqiRSy8oRyfYkZzvLhkgFR39voRe52v/RrIoHZsoSVm5DUtTTD/NVJEhQAjBMsEvPC3Y6/L1kIrCfvpVaAFumM8cYuGYwioCBm4aqD3+sw+A1vy7sPHPfEO42ysSGPSarrBIM=
file:
- dist/pandoc-scholar.tar.gz
- dist/pandoc-scholar.zip
on:
repo: pandoc-scholar/pandoc-scholar
tags: true