-
Notifications
You must be signed in to change notification settings - Fork 1
/
.cirrus.yml
30 lines (28 loc) · 1.44 KB
/
.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
28
29
30
freebsd_instance:
image: freebsd-12-1-release-amd64
env:
CIRRUS_CLONE_DEPTH: 1
GITHUB_TOKEN: ENCRYPTED[2ffcf0c40bff41ed6dad82f0066079101bf0dd46c48365891f27421aa53ef45274883949a377a35247820b4c92106462]
task:
# This name gets reported as a build status in GitHub
name: freebsd-12-1-release-amd64
stateful: false
setup_script:
- pkg install -y git curl wget zip pkgconf qt5-core qt5-widgets qt5-qmake qt5-buildtools ImageMagick7-nox11
test_script:
- git clone https://github.com/Simsys/qhexedit2
- cd qhexedit2
- mkdir build
- cd build
- qmake ../example/qhexedit.pro
- make -j4
- mkdir -p QHexEdit.app/Resources
- cp qhexedit QHexEdit.app/QHexEdit
- cp ../example/images/qhexedit32.png QHexEdit.app/Resources/QHexEdit.png
- mogrify -resize 200x200 QHexEdit.app/Resources/QHexEdit.png
- mogrify -background none -gravity center -extent 256x256 QHexEdit.app/Resources/QHexEdit.png
- cp ../../upstream-license.txt QHexEdit.app/Resources/COPYING
- find QHexEdit.app/
- zip --symlinks -r QHexEdit_FreeBSD.zip QHexEdit.app/
- case "$CIRRUS_BRANCH" in *pull/*) echo skipping since PR ;; * ) wget https://github.com/tcnksm/ghr/files/5247714/ghr.zip ; unzip ghr.zip ; rm ghr.zip ; ./ghr -replace -t "${GITHUB_TOKEN}" -u "${CIRRUS_REPO_OWNER}" -r "${CIRRUS_REPO_NAME}" -c "${CIRRUS_CHANGE_IN_REPO}" continuous "${CIRRUS_WORKING_DIR}"/qhexedit2/build/*zip ; esac
only_if: $CIRRUS_TAG != 'continuous'