diff --git a/.travis.yml b/.travis.yml index c55ba169c8..dbf3a727d5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,12 @@ language: c script: - make -s check - - make -s deploy + - make -s badge branches: only: - - master + - badge install: - git clone --depth=1 https://github.com/LCTT/lctt-scripts @@ -16,6 +16,6 @@ deploy: provider: pages skip_cleanup: true github_token: $GITHUB_TOKEN - local_dir: status_badge + local_dir: badge on: branch: master diff --git a/Makefile b/Makefile index ac39d64f5e..50e25e4b7c 100644 --- a/Makefile +++ b/Makefile @@ -50,5 +50,9 @@ rule-translation-published: [ $(shell cat $(CHANGE_FILE) | wc -l) = 2 ] echo 'Rule Matched: $(@)' -deploy: - echo 'deployed' +badge: + mkdir -p badge + ./lctt-scripts/show_status.sh -s published >badge/published.svg + ./lctt-scripts/show_status.sh -s translated >badge/translated.svg + ./lctt-scripts/show_status.sh -s translating >badge/translating.svg + ./lctt-scripts/show_status.sh -s sources >badge/sources.svg