My agentic slop goes here. Not intended for anyone else!
at jsont 1.0 kB view raw
1echo "yes" | sudo add-apt-repository ppa:avsm/ppa 2sudo apt-get update -qq 3sudo apt-get install ocaml ocaml-native-compilers camlp4-extra opam opam 4 5export OPAMYES=1 6opam init 7opam update 8opam install oasis ocamlfind calendar xmlm uri lwt cohttp 9eval `opam config env` 10 11./configure --enable-tests 12make 13make test 14 15if [ "$TRAVIS_REPO_SLUG" == "Cumulus/Syndic" ] \ 16 && [ "$TRAVIS_PULL_REQUEST" == "false" ] \ 17 && [ "$TRAVIS_BRANCH" == "master" ]; then 18 19 echo -e "Publishing ocamldoc...\n" 20 21 git config --global user.email "travis@travis-ci.org" 22 git config --global user.name "travis-ci" 23 git clone https://${GH_TOKEN}@github.com/Cumulus/Syndic .documentation 24 25 cd .documentation 26 git fetch 27 git checkout gh-pages 28 git merge master --commit -m "Merge master into gh-pages" 29 30 ./configure 31 make doc 32 33 git add -f doc/ 34 35 if [ -n "$(git status --untracked-files=no --porcelain)" ]; then 36 git commit -m "Update documentation $TRAVIS_BUILD_NUMBER" 37 git push -fq origin gh-pages 38 fi 39 40 echo -e "Published ocamldoc to gh-pages.\n" 41fi