Skip to content

Commit

Permalink
travis docker environment compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsar256 committed Jul 10, 2015
1 parent 52fe86e commit f27be21
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
4 changes: 1 addition & 3 deletions .travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,13 @@ if [ $RUNTESTS ] ; then
elif [ $PUBLISHDOCS ] ; then
if [ $PUBLISH_URL ] ; then

sudo apt-get install zlib1g-dev libssl-dev wkhtmltopdf libxml2-dev libxslt-dev #ruby-rvm

# Patch Gimli to fix underscores_inside_words
curl -L "${CURL_BASEOPTS[@]}" https://github.com/walle/gimli/archive/v0.5.9.tar.gz | tar zxf -

sed -i 's/).render(/, :no_intra_emphasis => true).render(/' gimli-0.5.9/ext/github_markup.rb

cd gimli-0.5.9/
gem build gimli.gemspec && rvmsudo gem install gimli
gem build gimli.gemspec && gem install gimli
cd ../

./build_docs.sh
Expand Down
17 changes: 15 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,29 @@ env:
- TARGET=ALIENWIIF1
- TARGET=ALIENWIIF3

# use new docker environment
sudo: false

addons:
apt:
packages:
- build-essential
- git
- libc6-i386
- zlib1g-dev
- libssl-dev
- wkhtmltopdf
- libxml2-dev
- libxslt-dev

# We use cpp for unit tests, and c for the main project.
language: cpp
compiler: clang

before_install:
- sudo apt-get update
- curl --retry 10 --retry-max-time 120 -L "https://launchpad.net/gcc-arm-embedded/4.9/4.9-2015-q2-update/+download/gcc-arm-none-eabi-4_9-2015q2-20150609-linux.tar.bz2" | tar xfj -

install:
- sudo apt-get install build-essential git libc6-i386
- export PATH=$PATH:$PWD/gcc-arm-none-eabi-4_9-2015q2/bin

before_script: arm-none-eabi-gcc --version
Expand Down
10 changes: 3 additions & 7 deletions build_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
filename=Manual
doc_files=(
'Introduction.md'
'Getting Started.md'
'Getting Started.md'
'Safety.md'
'Installation.md'
'Configuration.md'
Expand Down Expand Up @@ -41,23 +41,19 @@ if which gimli >/dev/null; then
echo "Building ${filename}.pdf"
pushd . >/dev/null
cd docs

rm -f ${filename}.md
for i in "${doc_files[@]}"
do
cat "$i" >> ${filename}.md
done
rm -f ${filename}.pdf
gimli -f ${filename}.md -stylesheet override.css
rm ${filename}.md
rm ${filename}.md
popd >/dev/null
else
echo -e "\nFAILED"
echo "Install Gimli to build the PDF documentation"
echo -e "https://github.com/walle/gimli\n"
exit 1
fi




0 comments on commit f27be21

Please sign in to comment.