Skip to content

Commit aa2fad8

Browse files
authored
Merge pull request #9 from tjvr/travis
Fix Travis builds
2 parents 36494f5 + 36fb958 commit aa2fad8

File tree

5 files changed

+22
-23
lines changed

5 files changed

+22
-23
lines changed

.travis.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
language: python
22
python:
33
- '2.7'
4-
install:
5-
- sudo add-apt-repository -y ppa:texlive-backports/ppa
6-
- sudo apt-get update
7-
- sudo apt-get install texlive make
4+
sudo: true
5+
dist: trusty
6+
before_install:
7+
- sudo apt-get install texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-font-utils texlive-generic-recommended purifyeps
88
script:
9-
- (cd sheets; LATEX_OPTS="-interaction=nonstopmode -shell-escape" make pdfrelease)
9+
- (cd sheets; LATEX_OPTS="-interaction=nonstopmode" make pdfrelease)
1010
deploy:
11-
provider: s3
12-
access_key_id: AKIAJNGHJWMQEU6QAIPQ
13-
secret_access_key:
14-
secure: tviNwD7V1A4WRzCwnRGXTHUf6kdbEG+7X7AxnTnSEf+ar1iXl/1aplLKFccc9vwzlGy0sUVqv0wg0kmQkIMhUhdZovOD4gUnOARUZzkTHj9L0apIb2gxLyEyYHCRFiIKLT6Vto8iPbU3ALCoQAhk2oQwM+dznQb6lg+U5HpRK8U=
15-
bucket: livewires-worksheets
16-
local-dir: release
17-
upload-dir: "$TRAVIS_BUILD_NUMBER"
18-
acl: !ruby/string:HighLine::String public_read
11+
provider: releases
12+
api_key:
13+
secure: cONhoGDyJTI1AB3N52EXNKoP6VivURket/NZEIzEpLgg2iiXzvevTZehOIJmdB67fdW0cHqkgpsD2kxxJ/BkoJN7atOPdmnIOeKD2GX8ntT33Fcvs3Co2drVPLtpriWQhnY7qNVBsYpm4kuyRZ+gAjFkQus6JC3+YF+O3U29lGTR/CFBmZMgIR+LLUVZMOYlugAOe/6aIYAKhw7jG2B4Do1s/gPM/l9fexqYr5B+4iiTRDZgDo9PcwhyzTEU7XsHhEHf3JQWxWE5U1XybBvvb826EIEj3ak/TaTvF5xe2uIuTGU9Hx5GAvJEOjuB3s/WAhVTGLm50y58ipmLiTg54Ya6tkdLZzsArX+wAexjW58kAlGDiFIvQcmvcdbLBfgtnlAR7MsZEksaJ5TWVZohGMAK0+umIlmJ7sqnQu2g5x11BxAM2TEW5TyTTtlQL1u4Tbc11UGCkVdzqPTBrEJis0b7WTrWawpDlqi22GXeHPl2jI372TMXT5crdIZAgC1zJdF7B+cpxE2bJLrm4JUnAqKtZWs/nmwKMDZ0Z5kG9AtL9aFQhgCr3C7SG+f6HBTiylYRZtucrXWzjU7r8vU9Bc64efvcQr/KFFo9xjLxDRpEyG0t/0q3LUKQdrDpNdVmMXJqYL/cWLHqEoev+LngeIuRhpvX9eeqXdaR0p+E688=
14+
file: release/livewires-pdfs.zip
1915
skip_cleanup: true
2016
on:
2117
repo: livewires/python
18+
tags: true
19+

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ You can find the package on the [downloads page](https://github.com/livewires/py
1313

1414
## Getting the sheets ##
1515

16-
The worksheets are built by Travis CI, and a tarballs are output to the livewires-worksheet S3 bucket; a nice viewer for the contents is available [here](http://shrub.appspot.com/livewires-worksheets/?s=date:d).
16+
The worksheets are built by Travis CI, and zip files are saved to GitHub; you
17+
can download them from the [Releases page](https://github.com/tjvr/livewires/releases/latest).
1718

1819
## About the course ##
1920

sheets/Makefile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Makefile for LW worksheets
22
# $Id: Makefile,v 1.12 2001/10/28 21:41:51 paul Exp paul $
3-
# pdrelease is probably the target you want to produce a tar.gz file
3+
# pdrelease is probably the target you want to produce a zip file
44
# all target is all the worksheets in PDF format
55

66
.SUFFIXES: .ltx .dvi .ps .pdf
@@ -10,7 +10,7 @@
1010
.dvi.ps:
1111
dvips -o $@ $<
1212
.ltx.pdf:
13-
pdflatex $(LATEX_OPTS) $< $@; pdflatex $(LATEX_OPTS) $< $@
13+
pdflatex $(LATEX_OPTS) -shell-escape $< $@; pdflatex $(LATEX_OPTS) -shell-escape $< $@
1414

1515
# If you add LaTeX source files, you'll need to change both SOURCES and
1616
# TARGETS. Don't include things in the games directory in SOURCES or
@@ -87,16 +87,14 @@ COPYING.txt: COPYING.txt.src $(SOURCES) mkcopying.py
8787
../release:
8888
mkdir ../release
8989

90-
../release/livewires-pdfs.tar.gz: all README.md COPYING.txt CHANGES.txt ../release
91-
tar --dereference -cvf ../release/livewires-pdfs.tar ./*.pdf games/*.pdf \
92-
$(PDFAUX)
93-
gzip --force --best ../release/livewires-pdfs.tar
90+
../release/livewires-pdfs.zip: all README.md COPYING.txt CHANGES.txt ../release
91+
zip ../release/livewires-pdfs.zip ./*.pdf games/*.pdf $(PDFAUX)
9492

9593
../release/livewires-ltx.tar.gz: $(SOURCES) $(AUX) ../release
9694
tar --dereference -cvf ../release/livewires-ltx.tar $(SOURCES) $(AUX)
9795
gzip --force --best ../release/livewires-ltx.tar
9896

99-
pdfrelease: ../release/livewires-pdfs.tar.gz
97+
pdfrelease: ../release/livewires-pdfs.zip
10098

10199
srcrelease: ../release/livewires-ltx.tar.gz
102100

sheets/README-latex.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ What you will need to use the source:
4141
ask us how to get LaTeX working, as we're not experts. Pre-packaged
4242
versions of LaTeX are available for most operating systems.
4343

44+
[On OS X, you can try `brew install mactex`.]
45+
4446
- Your life will be easier if you have a working Unix "make" utility (we
4547
use GNU Make). If you're using Windows, try the Cygnus utilities.
4648

@@ -114,7 +116,7 @@ the output of the script and the standard licence file.
114116
pdfrelease:
115117
-----------
116118

117-
The pdfrelease target produces a release .tar.gz file of the PDFs in the
119+
The pdfrelease target produces a release .zip file of the PDFs in the
118120
release, along with the README.txt and COPYING.txt files.
119121

120122
srcrelease:

sheets/games/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
.dvi.ps:
99
dvips -o $@ $<
1010
.ltx.pdf:
11-
pdflatex $(LATEX_OPTS) $<; pdflatex $(LATEX_OPTS) $<
11+
pdflatex $(LATEX_OPTS) -shell-escape $<; pdflatex $(LATEX_OPTS) -shell-escape $<
1212

1313
# Note: if you add to these and want your LaTeX source to go in the
1414
# source release archive, you'll need to add the filenames of the latex

0 commit comments

Comments
 (0)