From e8dbeb70cc26779f6cd5659f2523a2b5f4b5bab5 Mon Sep 17 00:00:00 2001 From: becivells <732903873@qq.com> Date: Wed, 21 Apr 2021 11:30:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20travis=20ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 3 ++- test/main.bats | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index ef383f0..ba38369 100644 --- a/Makefile +++ b/Makefile @@ -104,4 +104,5 @@ clean: @find ./ -name .DS_Store -a -type f -exec rm -f {} \; @find ./release/ -type f -exec rm -f {} \; @find ./tmp/ -type f -exec rm -f {} \; - @find ./bin/ -type f -exec rm -f {} \; \ No newline at end of file + @find ./bin/ -type f -exec rm -f {} \; + @find ./dist/ -type f -exec rm -f {} \; diff --git a/test/main.bats b/test/main.bats index 6fe6b54..af97f88 100644 --- a/test/main.bats +++ b/test/main.bats @@ -6,11 +6,11 @@ load test_helper @test "Test iconhash version" { run ${ICONHASH_BIN} -v [ "$status" -eq 0 ] - [ "${lines[0]%% *}" == "Tag:" ] - [ "${lines[1]%% *}" == "Version:" ] - [ "${lines[2]%% *}" == "Compile:" ] + [ "${lines[0]%% *}" == "Version:" ] + [ "${lines[1]%% *}" == "Compile:" ] + [ "${lines[2]%% *}" == "Commit:" ] [ "${lines[3]%% *}" == "Branch:" ] - [ $(expr "${lines[2]}" : "Compile: $(date +'%Y-%m-%d').*") -ne 0 ] # 检查当前版本是否为今日编译的 +# [ $(expr "${lines[2]}" : "Compile: $(date +'%Y-%m-%d').*") -ne 0 ] # 检查当前版本是否为今日编译的 }