Commit a4839c24 authored by Hermann Krumrey's avatar Hermann Krumrey

Add build script

parent c769e4c6
stages:
- mirror
- test
- gitstats
- finalize
github_mirror:
stage: mirror
tags:
- linux-buildserver
script:
- git checkout master
- git pull
- git push -f git@github.com:namboy94/gitlab-cloner.git master
checkstyle:
stage: test
tags:
- linux-buildserver
script:
- pep8 .
generate gitstats:
stage: gitstats
tags:
- linux-buildserver
script:
- gitstats . gitstats
- rsync -av gitstats/ /var/www/gitstats.namibsun.net/public_html/gitstats/gitlab-cloner --delete-before
generate git_stats:
stage: gitstats
tags:
- linux-buildserver
script:
- git_stats generate
- rsync -av git_stats/ /var/www/gitstats.namibsun.net/public_html/git_stats/gitlab-cloner --delete-before
update_html_pages:
stage: finalize
when: always
tags:
- linux-buildserver
script:
- git clone https://gitlab.namibsun.net/namboy94/html-index-generator.git
- cd html-index-generator
- python html-index-generator.py /var/www/coverage.namibsun.net/public_html
/var/www/coverage.namibsun.net/public_html/index.html
- python html-index-generator.py /var/www/docs.namibsun.net/public_html
/var/www/docs.namibsun.net/public_html/index.html
- python html-index-generator.py /var/www/gitstats.namibsun.net/public_html
/var/www/gitstats.namibsun.net/public_html/index.html
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment