From fa5b7b4dfeca22e5c2ca5448c1d57a3e0a6bb62e Mon Sep 17 00:00:00 2001 From: yicheng Date: Sun, 18 Aug 2019 11:47:15 +0800 Subject: [PATCH] Feature: update ci --- .travis.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8e53619..1a7305d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,7 @@ install: - wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz - tar -zxvf GeoLite2-Country.tar.gz - mv GeoLite2-Country_*/GeoLite2-Country.mmdb ./ClashX/Support\ Files/Country.mmdb +- mkdir -p ClashX/Resources - cd ClashX/Resources - git clone -b gh-pages https://github.com/Dreamacro/clash-dashboard.git dashboard - cd .. @@ -26,7 +27,13 @@ install: script: - 'xcodebuild -workspace ClashX.xcworkspace -scheme "ClashX" build CODE_SIGN_IDENTITY="Developer - ID Application: Fuzhou West2Online Internet Inc. (MEWHFZ92DY)"| xcpretty' + ID Application: Fuzhou West2Online Internet Inc. (MEWHFZ92DY)"' + +- echo "Checking SMJobBless Vailded" +- build_dir=`xcodebuild -workspace ClashX.xcworkspace -scheme "ClashX" -showBuildSettings -configuration Debug | grep -m 1 "TARGET_BUILD_DIR" | grep -oEi "\/.*"` +- build_dir=${build_dir}"/ClashX.app" +- python SMJobBlessUtil.py check ${build_dir} +- echo "Check completed" before_deploy: - gem install gym