2016-05-09 21:34:35 +02:00
build :
2016-08-03 22:03:46 +02:00
image : teaci/msys$$arch
2016-05-09 21:34:35 +02:00
pull : true
2016-08-03 22:03:46 +02:00
shell : mingw$$arch
2016-05-09 21:34:35 +02:00
commands :
2016-08-03 22:03:46 +02:00
- if [ $$arch = 32 ]; then target=i686; fi
- if [ $$arch = 64 ]; then target=x86_64; fi
2016-05-09 21:34:35 +02:00
- echo -e "[librepilot-mingw]\nSigLevel = Optional TrustAll\nServer = http://download.librepilot.org/repo/mingw" >> /etc/pacman.conf
2016-08-03 22:03:46 +02:00
- pacman -Syu --noconfirm --noprogressbar --needed git unzip tar mingw-w64-${target}-toolchain mingw-w64-${target}-ccache mingw-w64-${target}-qt5 mingw-w64-${target}-SDL mingw-w64-${target}-mesa mingw-w64-${target}-openssl mingw-w64-${target}-gdal-minimal mingw-w64-${target}-OpenSceneGraph mingw-w64-${target}-osgearth
2016-05-09 21:34:35 +02:00
- mingw32-make all_sdk_install
2016-05-20 14:52:59 +02:00
- git config core.filemode false
2016-05-09 21:34:35 +02:00
- mingw32-make build-info && cat build/build-info.txt
- mingw32-make opfw_resource
- mingw32-make gcs
- mingw32-make package
2016-09-02 21:30:48 +02:00
- mv `ls build/LibrePilot-*.exe` build/$$BRANCH-$$COMMIT-$$arch-package.exe
2016-05-09 21:34:35 +02:00
clone :
depth : 1000
tags : true
2016-08-03 22:03:46 +02:00
matrix :
arch :
- 32
- 64
2016-09-02 21:30:48 +02:00
publish :
bintray :
username : marcproe
api_key : $$BINTRAY_API_KEY
artifacts :
- file : build/$$BRANCH-$$COMMIT-$$arch-package.exe
owner : librepilot
type : executable
repository : LibrePilot
package : next
version : Windows
publish : true
override : true
target : $$BRANCH-$${COMMIT:0:6}-$$arch-tea-ci-package.exe
notify :
webhook :
urls :
- https://hooks.slack.com/services/$$SLACK_HOOK
content_type : application/json
template : >
{"text": "Tea-CI Build #{{ build.number }} finished with a {{ build.status }} status. If successful, the packages for {{ build.branch }} $${COMMIT:0:8} can be downloaded <https://bintray.com/librepilot/LibrePilot/next/Windows/view/#files|here>" }