Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git] / .drone.yml
blob608aaeef7d0eb9582a000cf127b75acf2128c88c
1 # If you change this file, you have to regenerate the .drone.sec file!
2 # Please refer to LP-394 for details, or ask on slack.
4 build:
5   image: teaci/msys$$arch
6   pull: true
7   shell: mingw$$arch
8   commands:
9     - if [ $$arch = 32 ]; then target=i686; fi
10     - if [ $$arch = 64 ]; then target=x86_64; fi
11     - echo -e "[librepilot-mingw]\nSigLevel = Optional TrustAll\nServer = http://download.librepilot.org/repo/mingw" >> /etc/pacman.conf
12     - pacman -Syu --noconfirm --noprogressbar --needed git unzip tar mingw-w64-${target}-toolchain mingw-w64-${target}-ccache mingw-w64-${target}-ntldd mingw-w64-${target}-qt5 mingw-w64-${target}-SDL mingw-w64-${target}-mesa mingw-w64-${target}-openssl
13     - pacman -Syu --noconfirm --noprogressbar --needed mingw-w64-${target}-gdal-minimal mingw-w64-${target}-OpenSceneGraph mingw-w64-${target}-osgearth
14     - pacman -Syu --noconfirm --noprogressbar --needed mingw-w64-${target}-gstreamer mingw-w64-${target}-gst-plugins-base mingw-w64-${target}-gst-plugins-good mingw-w64-${target}-gst-plugins-bad mingw-w64-${target}-gst-plugins-ugly mingw-w64-${target}-gst-libav
15     - mingw32-make all_sdk_install
16     - git config core.filemode false
17     - mingw32-make build-info && cat build/build-info.txt
18     - mingw32-make fw_resource
19     - mingw32-make gcs
20     - mingw32-make package
21     - mv `ls build/LibrePilot-*.exe` build/$$BRANCH-$$COMMIT-$$arch-package.exe 
23 clone:
24   depth: 1000
25   tags: true
27 matrix:
28     arch:
29         - 32
30         - 64
32 publish:
33   bintray:
34     username: marcproe
35     api_key: $$BINTRAY_API_KEY
36     artifacts:
37       - file: build/$$BRANCH-$$COMMIT-$$arch-package.exe
38         owner: librepilot
39         type: executable
40         repository: LibrePilot
41         package: next
42         version: Windows20172
43         publish: true
44         override: true
45         target: $$BRANCH-$${COMMIT:0:6}-$$arch-tea-ci-package.exe
47 notify:
48   webhook:
49     urls:
50       - https://hooks.slack.com/services/$$SLACK_HOOK
51     content_type: application/json
52     template: >
53       {"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/Windows20172/view/#files|here>"}