Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
修改 travis ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Becivells committed Apr 21, 2021
1 parent cb8720e commit e8dbeb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 {} \;
@find ./bin/ -type f -exec rm -f {} \;
@find ./dist/ -type f -exec rm -f {} \;
8 changes: 4 additions & 4 deletions test/main.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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 ] # 检查当前版本是否为今日编译的
}


Expand Down

0 comments on commit e8dbeb7

Please sign in to comment.