Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix travis (and local) builds #211

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/book-result/
/pillarPostExport.sh
/download.sh

# Pharo stuff
/Pharo.changes
Expand Down
21 changes: 8 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
language: pillar
sudo: false
cache:
directories:
- /tmp/texlive
addons:
apt:
packages:
- libc6-i386

before_install:
- sudo apt-get -qq update
- sudo apt-get install libc6-i386
- sudo apt-get install --no-install-recommends texlive-fonts-recommended texlive-latex-extra texlive-fonts-extra texlive-latex-recommended dvipng

install:
- if [ ! -d "/tmp/texlive/CURRENT" ]; then mkdir -p /tmp/texlive && cd /tmp/texlive && wget https://gist.github.com/urdh/ca8ffcf7cb7c6eace9ad/raw/57718dd299f2e0cd4a2966c17222330624ec9383/texlive.profile -O - | sed -e sX/usr/localX/tmpX > texlive.profile && wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz && tar -xvf install-tl-unx.tar.gz && cd install-tl-* && ./install-tl --profile=../texlive.profile; else echo "LaTeX is already in the cache. If necessary, clean it with http://docs.travis-ci.com/user/caching/#Clearing-Caches"; fi
- cd $TRAVIS_BUILD_DIR
- ./download.sh
- ./prepare.sh

script:
- PATH=/tmp/texlive/CURRENT/bin/x86_64-linux:$PATH ./compile.sh
- ./compile.sh --to="HTML by chapter"
18 changes: 18 additions & 0 deletions PharoByExample.pillar
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

${inputFile:Preface/Preface.pillar}$
${inputFile:PharoTour/PharoTour.pillar}$
${inputFile:FirstApplication/FirstApplication.pillar}$
${inputFile:SyntaxNutshell/SyntaxNutshell.pillar}$
${inputFile:UnderstandingMessage/UnderstandingMessage.pillar}$
${inputFile:PharoObjectModel/PharoObjectModel.pillar}$
${inputFile:Environment/Environment.pillar}$
${inputFile:SharingCode/SharingCode.pillar}$
${inputFile:SUnit/SUnit.pillar}$
${inputFile:BasicClasses/BasicClasses.pillar}$
${inputFile:Collections/Collections.pillar}$
${inputFile:Streams/Streams.pillar}$
${inputFile:Morphic/Morphic.pier}$
${inputFile:Seaside/Seaside.pier}$
${inputFile:Metaclasses/Metaclasses.pillar}$
${inputFile:Reflection/Reflection.pier}$
${inputFile:Regex/Regex.pier}$
81 changes: 0 additions & 81 deletions download.sh

This file was deleted.

20 changes: 1 addition & 19 deletions pillar.conf
Original file line number Diff line number Diff line change
Expand Up @@ -48,24 +48,6 @@ fi",
}
}
},
"inputFiles" : [
"Preface/Preface.pillar",
"PharoTour/PharoTour.pillar",
"FirstApplication/FirstApplication.pillar",
"SyntaxNutshell/SyntaxNutshell.pillar",
"UnderstandingMessage/UnderstandingMessage.pillar",
"PharoObjectModel/PharoObjectModel.pillar",
"Environment/Environment.pillar",
"SharingCode/SharingCode.pillar",
"SUnit/SUnit.pillar",
"BasicClasses/BasicClasses.pillar",
"Collections/Collections.pillar",
"Streams/Streams.pillar",
"Morphic/Morphic.pier",
"Seaside/Seaside.pier",
"Metaclasses/Metaclasses.pillar",
"Reflection/Reflection.pier",
"Regex/Regex.pier"
],
"inputFile" : "PharoByExample.pillar",
"support" : [ "support" , "*/figures", ".latexmkrc" ]
}
23 changes: 23 additions & 0 deletions prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
#
# prepare.sh - prepare recent versions of Pillar (and Pharo VM) for book
# compilation.
#

DEPENDENCIES=(wget)

check_dependencies() {
for app in ${DEPENDENCIES[*]}; do
if ! type "${app}" &> /dev/null; then
echo "Cannot find: ${app}"
echo "Install it to continue..."
exit 127 # command not found
fi
done
}

check_dependencies

wget https://raw.githubusercontent.com/pillar-markup/pillar/master/download.sh
chmod +x download.sh
./download.sh