-
Notifications
You must be signed in to change notification settings - Fork 9
/
.cirrus.yml
27 lines (26 loc) · 897 Bytes
/
.cirrus.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
common: &COMMON_TEMPLATE
timeout_in: 120m
clone_script: |
if [ -z "$CIRRUS_PR" ]; then
git clone --recursive --branch=$CIRRUS_BRANCH https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git $CIRRUS_WORKING_DIR
git reset --hard $CIRRUS_CHANGE_IN_REPO
else
git clone --recursive https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git $CIRRUS_WORKING_DIR
git fetch origin pull/$CIRRUS_PR/head:pull/$CIRRUS_PR
git reset --hard $CIRRUS_CHANGE_IN_REPO
fi
env:
GIT_REPO: $CIRRUS_WORKING_DIR
task:
name: "Build MacOS DMG"
<< : *COMMON_TEMPLATE
macos_instance:
image: catalina-base
brew_script:
- brew update
- brew install coreutils gettext pyenv
test_script:
- cd contrib/osx && ./make_osx
binaries_artifacts:
path: "dist/*.dmg"
trigger_type: manual