fix/ci: update travis.yml

This commit is contained in:
SukkaW 2018-08-20 10:37:09 +08:00
parent 53179cde57
commit 854748b899
2 changed files with 5 additions and 11 deletions

View file

@ -5,13 +5,5 @@ dist: trusty
install: install:
- sudo apt-get --yes install libxml2-utils - sudo apt-get --yes install libxml2-utils
script: script:
- chmod +x ./checker.sh - chmod +x ./run.sh
- chmod +x ./combine.sh - ./run.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

4
run.sh
View file

@ -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 ./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/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'))" DATE="$(echo $(TZ=UTC-8 date '+%Y-%m-%d %H:%M:%S'))"
sed -i "s|{{CheckTime}}|$DATE|g" tmp/index.html 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/index.html public/index.html
cp -rf tmp/api/chrome.xml public/api/chrome.xml cp -rf tmp/api/chrome.xml public/api/chrome.xml
cp -rf tmp/api/chrome.min.xml public/api/chrome.min.xml cp -rf tmp/api/chrome.min.xml public/api/chrome.min.xml
./util/deployer.sh