From 854748b8992ccbb51d35731c8d393b4b04647755 Mon Sep 17 00:00:00 2001 From: SukkaW Date: Mon, 20 Aug 2018 10:37:09 +0800 Subject: [PATCH] fix/ci: update travis.yml --- .travis.yml | 12 ++---------- run.sh | 4 +++- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1d18ccf..e62d8e3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,13 +5,5 @@ dist: trusty install: - sudo apt-get --yes install libxml2-utils script: - - chmod +x ./checker.sh - - chmod +x ./combine.sh - - chmod +x ./util/xmlparser.sh - - chmod +x ./build.sh - - chmod +x ./deploy.sh - - ./checker.sh - - ./combine.sh - - ./xmlparser.sh tmp/chrome.xml > tmp/chrome_xml_parser_result.txt - - ./build.sh - - ./deploy.sh > /dev/null + - chmod +x ./run.sh + - ./run.sh diff --git a/run.sh b/run.sh index d05266d..df67273 100644 --- a/run.sh +++ b/run.sh @@ -14,7 +14,7 @@ chmod +x ./util/deployer.sh ./util/parse.sh stable-x86 stable-x64 beta-x86 beta-x64 dev-x86 dev-x64 canary-x86 canary-x64 cp -rf src/index.html tmp/index.html -cp -rf src/chrome.tpl tmp/chrome.xml +cp -rf src/chrome.xml tmp/chrome.xml DATE="$(echo $(TZ=UTC-8 date '+%Y-%m-%d %H:%M:%S'))" sed -i "s|{{CheckTime}}|$DATE|g" tmp/index.html @@ -28,3 +28,5 @@ xmllint --noblanks tmp/chrome.xml > tmp/api/chrome.min.xml cp -rf tmp/index.html public/index.html cp -rf tmp/api/chrome.xml public/api/chrome.xml cp -rf tmp/api/chrome.min.xml public/api/chrome.min.xml + +./util/deployer.sh