From 5d2bc42cd0213b60098abc0b730b4c9e56f7f79c Mon Sep 17 00:00:00 2001 From: darksun Date: Tue, 23 Oct 2018 18:14:35 +0800 Subject: [PATCH] first commit --- .travis.yml | 21 ++++++++++++++++++++- Makefile | 3 +++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1a8cdd6d43..c55ba169c8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,2 +1,21 @@ language: c -script: make -s check +script: + - make -s check + - make -s deploy + + +branches: + only: + - master + +install: + - git clone --depth=1 https://github.com/LCTT/lctt-scripts + - sed -i "/ProjectRoot=/cProjectRoot=$(pwd)" ./lctt-scripts/lctt.cfg + +deploy: + provider: pages + skip_cleanup: true + github_token: $GITHUB_TOKEN + local_dir: status_badge + on: +branch: master diff --git a/Makefile b/Makefile index 715597e46e..ac39d64f5e 100644 --- a/Makefile +++ b/Makefile @@ -49,3 +49,6 @@ rule-translation-published: [ $(shell egrep '^A\s*"?published/$(NAME_PATTERN)' $(CHANGE_FILE) | wc -l) = 1 ] [ $(shell cat $(CHANGE_FILE) | wc -l) = 2 ] echo 'Rule Matched: $(@)' + +deploy: + echo 'deployed'