-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(travis-ci): deploy artifacts for macOS to GitHub releases [skip …
…appveyor]
- Loading branch information
Showing
5 changed files
with
52 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,31 @@ | ||
language: cpp | ||
|
||
matrix: | ||
include: | ||
- os: osx | ||
compiler: clang | ||
- os: linux | ||
compiler: gcc | ||
dist: trusty | ||
sudo: required | ||
|
||
install: | ||
./travis-install.sh | ||
|
||
script: | ||
./travis-script.sh | ||
- os: linux | ||
compiler: gcc | ||
dist: trusty | ||
sudo: required | ||
install: "./travis-install.sh" | ||
script: make test | ||
- 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 \ | ||
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 | ||
skip_cleanup: true | ||
name: "librime ${TRAVIS_TAG}" | ||
body: "chore(release): ${TRAVIS_TAG} :tada:" | ||
draft: true | ||
on: | ||
repo: rime/librime | ||
tags: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
dep_packages=( | ||
doxygen | ||
libboost-filesystem-dev | ||
libboost-locale-dev | ||
libboost-regex-dev | ||
libboost-system-dev | ||
libgoogle-glog-dev | ||
libleveldb-dev | ||
libmarisa-dev | ||
libyaml-cpp-dev | ||
) | ||
|
||
sudo apt-get update | ||
sudo apt-get install ${dep_packages[@]} -y | ||
make thirdparty/gtest | ||
make -C thirdparty/src/opencc build | ||
sudo env "PATH=$PATH" make -C thirdparty/src/opencc install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
make xcode/thirdparty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.