File: upload-javascript.sh

package info (click to toggle)
wala 1.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 20,304 kB
  • sloc: java: 185,762; javascript: 37,931; xml: 6,066; cpp: 1,161; sh: 204; makefile: 46; python: 46; ml: 12; lisp: 8
file content (21 lines) | stat: -rw-r--r-- 639 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

if [ "$TRAVIS_REPO_SLUG" == "wala/WALA" ] &&
   [ "$TRAVIS_PULL_REQUEST" == "false" ] &&
   [ "$TRAVIS_BRANCH" == "master" ]; then

    cd $HOME
    git config --global user.email "travis@travis-ci.org"
    git config --global user.name "travis-ci"
    git clone --quiet https://${GH_TOKEN}@github.com/wala/javadoc > /dev/null

    cd javadoc
    git rm -rf --quiet *
    cp -Rf $HOME/build/wala/WALA/target/site/apidocs/* .
    git add -f .
    git commit -m "Latest javadoc on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
    git push > /dev/null

    echo -e "Published Javadoc to gh-pages.\n"

fi