From cf11c27560fe587e31206d670d0190f7dfbf7112 Mon Sep 17 00:00:00 2001 From: Chen Gong Date: Fri, 21 Jun 2019 19:36:50 +0800 Subject: [PATCH] feat(travis-ci): build variant "rime-with-plugins" for tagged commits [skip appveyor] --- .travis.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6f02e7463..d9b40bb44 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,21 +7,22 @@ matrix: sudo: required install: "./travis-install.sh" script: make test - - os: osx + - &osx_build + os: osx compiler: clang install: "./travis-install.sh" script: make xcode/test before_deploy: - make xcode/dist - | - zip -r rime-${TRAVIS_TAG}-${TRAVIS_OS_NAME}.zip \ + zip -r ${RIME_VARIANT:-rime}-${TRAVIS_TAG}-${TRAVIS_OS_NAME}.zip \ dist thirdparty/bin thirdparty/share \ -x '*/curl.exe' deploy: provider: releases api_key: secure: OXzu4Au7Uri/4pugRsQATYv2+QHNRfx64jRBSTdYUJ8ehdg67HHJrofxhUG2Q+lNZlm2VO51ihOsmp9c3gYtT+ohSxD3/y3z8VDw6k7a+5ihT+Svrr1fpHf30I2DupGe5bO1MFB9rltZ+kv/nERciT5n1jOO5ZxefNCRac2aylE= - file: rime-${TRAVIS_TAG}-${TRAVIS_OS_NAME}.zip + file: ${RIME_VARIANT:-rime}-${TRAVIS_TAG}-${TRAVIS_OS_NAME}.zip skip_cleanup: true name: "librime ${TRAVIS_TAG}" body: "chore(release): ${TRAVIS_TAG} :tada:" @@ -29,3 +30,6 @@ matrix: on: repo: rime/librime tags: true + - <<: *osx_build + if: tag IS present + env: RIME_PLUGINS="${RIME_BUNDLED_PLUGINS}" RIME_VARIANT="rime-with-plugins"