From 0ec97ca6a24bc6f2443db78f26bd655f1027ee7d Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Wed, 11 Mar 2020 18:37:57 +0800 Subject: [PATCH] Feat: travis ci deploy --- .travis.yml | 9 ++++----- build.sh | 2 ++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index be82784..0a2a0f0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,21 +5,20 @@ git: depth: 1 install: - go get github.com/rakyll/statik + - sudo apt install gcc-mingw-w64 + - sudo apt install gcc-arm-linux-gnueabi before_script: - statik -src=models -f + - chmod +x ./build.sh script: - ./build.sh -r b -before_deploy: - - sudo apt install gcc-mingw-w64 - - apt-get install gcc-arm-linux-gnueabi - - chmod +x ./build.sh deploy: provider: releases api_key: $GITHUB_TOKEN file_glob: true file: release/* draft: true - skip_cleanup: true + cleanup: true # script: # - go test -coverprofile=coverage.txt -covermode=atomic ./... # after_success: diff --git a/build.sh b/build.sh index d173001..976cec8 100755 --- a/build.sh +++ b/build.sh @@ -21,6 +21,8 @@ buildAssets () { rm -rf assets/build rm -f statik/statik.go + export CI=false + cd $REPO/assets yarn install