forked from pandoc-scholar/pandoc-scholar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (44 loc) · 1.8 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
sudo: false
language: minimal
env:
- PANDOC_VERSION=2.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 && make all)
before_deploy:
- make dist-clean
- make archives
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: QvXjw3vfIQtbY2QMmnyxfcIqczQ7J7UZ0nK+xyA9ebvNWuQR0+9XB59fpn41fFgCw151gK8dtVxON4EeoRFM/2+mkSJPBMzEaOA66p8XZYh856gKxh2VrVWPES/GF/dO/+191WH8Rj+YmqcvHt/kHvrGvYX1YGzCDtuLUcRTnIt0MHlBoGoa5ip/5L8hCv8/MXKm35VETOGcj2Qfia4KxCJ8nZg2b+suWx+DonIhsma3kDn8qN9DDrpT7buO4/lqEqYueRpY91YZ5pVangLgwhy38iIfGle7/NAJMPE8lzzPoMtgesmCXkSgGfuMEaeXADPKzTcUf9zHj8RNa/gpOJRe/sGZxVCdDt+xiLHZSRHWLgUwZQGw+c1t4L+ka3coEh8h4Fc1sSdZrw6bmBCKlC2YbchbA5FwdxSLWFndg5CGPck8OAny09tSWk+cnCDZFCdJwL4eQ4jNxjwZOd7hUxUZjD1O1BT2EyYIa14PbP8Mj36U2yacTibb7JPSwTfoJMrcBczGeRJABQhyjgVtpzzwQwiC9SK9VMB1T4Nuw71LbOB2azuBhU42X/3EOEAI3EWNi/o9BmbyfBddxiI1bFfOmh2+b7HxyoTp6kp4QsGVaAjLufStP5pCJhxbU6ByeZRwb5SM8xcCdNKeczgseVmv8KzZpdFSEk4DvncLEXo=
file:
- dist/pandoc-scholar.tar.gz
- dist/pandoc-scholar.zip
on:
repo: pandoc-scholar/pandoc-scholar
tags: true