This commit is contained in:
darksun 2018-10-23 20:13:32 +08:00
parent 5d2bc42cd0
commit 166f0c15a4
2 changed files with 9 additions and 5 deletions

View File

@ -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

View File

@ -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