1 Star 0 Fork 0

Vy6bRra/Sigil

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 2.16 KB
一键复制 编辑 原始数据 按行查看 历史
os: osx
language: c++
compiler: clang
osx_image: xcode10.1
env:
global:
- HOMEBREW_NO_AUTO_UPDATE=1
- MACOSX_DEPLOYMENT_TARGET=10.12
- QT_URL=https://github.com/kevinhendricks/BuildSigilOnMac/releases/download/for_sigil_1.0.0/Qt5127.tar.xz
- PYTHON_URL=https://github.com/kevinhendricks/BuildSigilOnMac/releases/download/for_sigil_1.0.0/Python.framework.tar.xz
- PY_VER=3.7
branches:
only:
- master
- appearance
- /\d+\.\d+\.\d+(-\d+)?/
git:
depth: 3
install:
- brew install gdrive
- brew install xz
- pwd
- cd ~
# Retrieve custom Qt
- wget $QT_URL
- tar xzf Qt5127.tar.xz
- export MYQTHOME=${HOME}/Qt5127
# Add custom Qt to path
- export PATH=${PATH}:${MYQTHOME}/bin
# macdeployqt looks for qt plugins in a hard-coded compile-time location
- sudo mkdir -p /Users/kbhend/Qt5127
- sudo chown -R travis /Users/kbhend/
- cp -R ~/Qt5127/plugins /Users/kbhend/Qt5127
# Retrieve custom Python
- mkdir Frameworks
- cd ./Frameworks
- wget $PYTHON_URL
- tar xzf Python.framework.tar.xz
- export MYDEST=${HOME}/Frameworks
# prepend custom Python to path
- export PATH=${MYDEST}/Python.framework/Versions/${PY_VER}/bin:${PATH}
script:
- cd ~/build/${TRAVIS_REPO_SLUG}
- mkdir build && cd build
- pwd
- cmake -DPKG_SYSTEM_PYTHON=1 \
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.12 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS=-Wno-inconsistent-missing-override \
-DCMAKE_PREFIX_PATH=${MYQTHOME}/lib/cmake \
-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/ ../
- make -j4
- make addframeworks
- bash ../ci_scripts/rpath_adjust.sh
- cd ./bin
# Don't make the xz archive on remote PRs
- if [[ "$TRAVIS_SECURE_ENV_VARS" == true ]]; then
tar -cJf Sigil.tar.xz Sigil.app;
fi
- cd ../
after_success:
# Remote PRs won't set secure variables, so don't try to deploy
- python3 --version
- if [[ "$TRAVIS_SECURE_ENV_VARS" == true ]]; then
python3 ../ci_scripts/gddeploy.py;
fi
#deploy:
# provider: script
# script: bash ../ci_scripts/macgddeploy.sh
# skip_cleanup: true
# on:
# branch: master
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Vy6bRra/Sigil.git
git@gitee.com:Vy6bRra/Sigil.git
Vy6bRra
Sigil
Sigil
master

搜索帮助