Skip to content

Commit

Permalink
maint: add indexed source generation to Travis deployment script
Browse files Browse the repository at this point in the history
Signed-off-by: Yury V. Zaytsev <[email protected]>
  • Loading branch information
zyv committed Feb 19, 2016
1 parent dbb5269 commit 47a86b3
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ install:
- sudo apt-get update -qq
- sudo apt-get install -y autoconf gettext autopoint libtool check indent
- sudo apt-get install -y e2fslibs-dev libaspell-dev libglib2.0-dev libgpm-dev libncurses5-dev libslang2-dev libssh2-1-dev libx11-dev unzip
- sudo apt-get install -y wget exuberant-ctags python-pygments ruby

script:
- ./maint/utils/check-indent.sh
Expand Down
35 changes: 30 additions & 5 deletions maint/utils/travis-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,45 @@
set -e
set -x

mkdir HTML && cd HTML
GLOBAL_VERSION="6.5.2"
GLOBAL_URL="http://ftp.gnu.org/pub/gnu/global/global-${GLOBAL_VERSION}.tar.gz"
HTAGSFIX_URL="https://github.com/mooffie/htagsfix/raw/master/htagsfix"

echo "source.midnight-commander.org" > CNAME
echo "It works!" > index.html
mkdir CVS && pushd CVS # ignored by GLOBAL's indexer

wget ${GLOBAL_URL}
tar zxvf global-${GLOBAL_VERSION}.tar.gz > /dev/null 2>&1

pushd global-${GLOBAL_VERSION}
./configure --prefix=$(pwd)/install
make
make install
popd

export PATH="$(pwd)/global-${GLOBAL_VERSION}/install/bin:$PATH"

popd

gtags -v > /dev/null 2>&1

htags --suggest > /dev/null 2>&1

wget --no-check-certificate ${HTAGSFIX_URL}

ruby htagsfix > /dev/null 2>&1

cd HTML

touch .nojekyll
echo "source.midnight-commander.org" > CNAME

git init

git config user.name "Travis CI"
git config user.email "[email protected]"

git add .
git commit -m "Deploy to GitHub Pages"
git add . > /dev/null 2>&1
git commit -m "Deploy to GitHub Pages" > /dev/null 2>&1

git push --force --quiet [email protected]:MidnightCommander/source.git master:gh-pages > /dev/null 2>&1

Expand Down

0 comments on commit 47a86b3

Please sign in to comment.