forked from rime/librime
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
48 lines (48 loc) · 1.43 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
language: cpp
matrix:
include:
- os: linux
compiler: gcc
dist: focal
sudo: required
install: "./travis-install.sh"
script: make test
- if: tag IS NOT present
os: osx
compiler: clang
install: "./travis-install.sh"
script: make xcode/test
- if: tag IS present
env: >
BOOST_ROOT="${TRAVIS_BUILD_DIR}/thirdparty/src/boost_1_75_0"
BUILD_UNIVERSAL=1
RIME_PLUGINS="${RIME_BUNDLED_PLUGINS}"
os: osx
osx_image: xcode12.3
compiler: clang
install: "./travis-install.sh"
script:
- make xcode/test xcode/dist RIME_PLUGINS=
- |
zip -r rime-${TRAVIS_TAG}-${TRAVIS_OS_NAME}.zip \
dist thirdparty/bin thirdparty/share \
-x '*/curl.exe'
- make xcode/test xcode/dist
- |
zip -r rime-with-plugins-${TRAVIS_TAG}-${TRAVIS_OS_NAME}.zip \
dist thirdparty/bin thirdparty/share \
-x '*/curl.exe'
deploy:
provider: releases
api_key:
secure: Le2PfdrOqVmk5c1Eu/q9fvLGG1WZz5SuIXw0LVTqWn8cPCJvvsh9/RsjKx59uI0rxs/sJnbsCnPSaiveY5i51Jy7apkqtysUfglr+2CjgyXY5s7qBWiZ60/j2V5CDkk+Q/PSB/GXcVxHQWPh6X1M75GWa9b+4COKJX3Kh/FO0rM=
file:
- "rime-${TRAVIS_TAG}-${TRAVIS_OS_NAME}.zip"
- "rime-with-plugins-${TRAVIS_TAG}-${TRAVIS_OS_NAME}.zip"
skip_cleanup: true
name: librime ${TRAVIS_TAG}
body: 'chore(release): ${TRAVIS_TAG} :tada:'
draft: true
on:
repo: rime/librime
tags: true