From 166f0c15a4d2a92e44771a11ac240fa8e25e3e67 Mon Sep 17 00:00:00 2001 From: darksun Date: Tue, 23 Oct 2018 20:13:32 +0800 Subject: [PATCH] update --- .travis.yml | 6 +++--- Makefile | 8 ++++++-- 2 files changed, 9 insertions(+), 5 deletions(-) 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