-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy path.retired_travis.yml
55 lines (48 loc) · 1.5 KB
/
.retired_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
49
50
51
52
53
54
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/Qt5129.tar.xz
git:
depth: 3
install:
- brew install gdrive
- brew install xz
- pwd
- cd ~
# Retrieve custom Qt
- wget $QT_URL
- tar xzf Qt5129.tar.xz
- export MYQTHOME=${HOME}/Qt5129
# 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/Qt5129
- sudo chown -R travis /Users/kbhend/
- cp -R ~/Qt5129/plugins /Users/kbhend/Qt5129
script:
- cd ~/build/${TRAVIS_REPO_SLUG}
- mkdir build && cd build
- pwd
- cmake -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
- cd ./bin
# Don't make the xz archive on remote PRs
- if [[ "$TRAVIS_SECURE_ENV_VARS" == true ]]; then
tar -cJf PageEdit.tar.xz PageEdit.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