www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit afb577643fd4a663089d82075c0496d0731f1064
parent 8da88bcd772e229a7fac68028e3b229abb1c9113
Author: Georges Dupéron <georges.duperon@gmail.com>
Date:   Wed, 12 Jul 2017 21:31:11 +0200

Reduce verbosity of logs, unless there is an error, to prevent Travis from truncating the log (and blocking or failing the build)

Diffstat:
M.gitignore | 6++++--
M.travis.yml | 2+-
MMakefile | 2+-
Mauto-push-gh-pages.sh | 2+-
4 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -4,4 +4,6 @@ .DS_Store compiled/ /doc/ -/make.log -\ No newline at end of file +/pdf.log +/html.log +/commit.log +\ No newline at end of file diff --git a/.travis.yml b/.travis.yml @@ -60,7 +60,7 @@ jobs: - raco test -x -p "$(basename "$TRAVIS_BUILD_DIR")" - raco setup --check-pkg-deps --no-zo --no-launcher --no-install --no-post-install --no-docs --pkgs "$(basename "$TRAVIS_BUILD_DIR")"; - rm -fr doc/ - - raco scribble --dest doc/phc-thesis --html --dest-name index --redirect-main https://docs.racket-lang.org/ --redirect https://docs.racket-lang.org/ scribblings/phc-thesis.scrbl + - raco scribble --dest doc/phc-thesis --html --dest-name index --redirect-main https://docs.racket-lang.org/ --redirect https://docs.racket-lang.org/ scribblings/phc-thesis.scrbl > html.log 2>&1 || (cat html.log && exit 1) - make - find doc -name '*.html' -type f -print0 | xargs -0 ls -ld - find doc -name '*.html' -type f -print0 | xargs -0 sed -i -e 's|https://download\.racket-lang\.org/docs/6\.9/html/|https://docs.racket-lang.org/|g' diff --git a/Makefile b/Makefile @@ -2,6 +2,6 @@ all: doc/pdf/phc-thesis.pdf doc/pdf/phc-thesis.pdf: scribblings/*.scrbl scribblings/*.rkt - raco setup --doc-pdf doc/pdf/ --pkgs phc-thesis + raco setup --doc-pdf doc/pdf/ --pkgs phc-thesis > pdf.log 2>&1 || (cat pdf.log && exit 1) gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dFastWebView=true -sOutputFile=doc/pdf/phc-thesis-linearized.pdf doc/pdf/phc-thesis.pdf mv doc/pdf/phc-thesis-linearized.pdf doc/pdf/phc-thesis.pdf diff --git a/auto-push-gh-pages.sh b/auto-push-gh-pages.sh @@ -42,7 +42,7 @@ else #mkdir $TRAVIS_GH_PAGES_DIR/MathJax #echo 'document.write("<script src=\"http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=default\"></script>");' > $TRAVIS_GH_PAGES_DIR/MathJax/MathJax.js touch $TRAVIS_GH_PAGES_DIR/.nojekyll - (cd $TRAVIS_GH_PAGES_DIR && git add -A . && git commit -m "Auto-publish to gh-pages") + (cd $TRAVIS_GH_PAGES_DIR && git add -A . && git commit -m "Auto-publish to gh-pages") > commit.log || (cat commit.log && exit 1) (cd $TRAVIS_GH_PAGES_DIR && git log --oneline --decorate --graph -10) echo '(cd '"$TRAVIS_GH_PAGES_DIR"'; git push --force --quiet "git@github.com/jsmaniac/phc-thesis.git" master:gh-pages)' (cd $TRAVIS_GH_PAGES_DIR; git push --force --quiet "git@github.com:jsmaniac/phc-thesis.git" master:gh-pages >/dev/null 2>&1) >/dev/null 2>&1 # redirect to /dev/null to avoid showing credentials.