Skip to content

Merge from devel #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Apr 15, 2016
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
1130ea8
Add bufferflow timedraw
facchinm Nov 12, 2015
6c1c6fa
add sendjsonraw command
facchinm Nov 12, 2015
d710b2d
Use a POST request to trigger update.
matteosuppo Mar 1, 2016
272cd49
Return something before rebooting after an update
matteosuppo Mar 1, 2016
781d8ae
Handle error when looking for path
matteosuppo Mar 1, 2016
981fd38
Merge branch 'devel' into updater
matteosuppo Mar 3, 2016
7c55c5e
Merge pull request #30 from facchinm/timedraw
matteosuppo Mar 3, 2016
8d60ac4
Add autoupdater to vendor folder
matteosuppo Mar 3, 2016
7376967
Update drone to notify arduino-create
matteosuppo Mar 3, 2016
9c7581c
Update drone.sec
matteosuppo Mar 3, 2016
a10a5f8
Fix event hook for notify
matteosuppo Mar 3, 2016
83bc945
Merge pull request #80 from arduino/drone
mastrolinux Mar 7, 2016
d47afcd
Merge branch 'devel' into updater
matteosuppo Mar 10, 2016
6a575f8
Add CORS origins for Scratch and ScratchX
khanning Mar 25, 2016
95f9053
Merge pull request #82 from khanning/devel
matteosuppo Mar 25, 2016
90677b6
Merge pull request #73 from arduino/updater
mastrolinux Apr 7, 2016
68f63b4
Trigger build jenkins
matteosuppo Apr 8, 2016
3497f58
Allow update for dev
matteosuppo Apr 11, 2016
712843b
Remove Scratch and ScratchX CORS entries
khanning Apr 11, 2016
82a4b4e
Remove useless function
matteosuppo Apr 11, 2016
d72645e
Merge pull request #85 from khanning/devel
mastrolinux Apr 12, 2016
9cd874b
Merge pull request #84 from arduino/allowupdatefordev
mastrolinux Apr 12, 2016
e169600
Add info to install libappindicator
mastrolinux Apr 13, 2016
14f88c9
Merge pull request #86 from arduino/fake-commit
Apr 13, 2016
67b28a7
Use a goroutine to detach the restart from the request
matteosuppo Apr 13, 2016
64849f6
Merge pull request #87 from arduino/fixrestart
mastrolinux Apr 14, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update drone to notify arduino-create
  • Loading branch information
matteosuppo committed Mar 3, 2016
commit 7376967c3aafe93ee04f6b5f3d70854d9f07769d
2 changes: 1 addition & 1 deletion .drone.sec
Original file line number Diff line number Diff line change
@@ -1 +1 @@
eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhHQ00ifQ.js55JcNOTOEYUK7TvkYbNUbvZvoKkze6nB0ql2b3ZWkMn6LGRdlfo3e7ktMiRf8e9RAffm86SQSEMorTw78h8iFmub7JI0Z8Xwm1A960SmkW-ULLrzE0uT6il7_pYzjOAxboUiH0ToCElvsTYEUBicc7p4a3gIhgZAezd1w52JIYxzbFQ0ca0fws3KH3H4iR6-N0d7Cc5xEXFIzHgH_OhJUXYiaCW-g5GLgbPQPu29Ofv3-_sZzXTJj4VSjvgRNzkudJieM5KjN_5L9KU6wSJyGECVsTd-kaM0yOesl9NbWq-6SMORIK43kBEgu679OWuMzJ6HbbW6Bk5I8XQASp0w.FvNQmCS3b0mq8MGN.uS9nMU1WjTWxIvkOr41zAGp6OY7MzxWQ2KteBaRm9hE3XDSWvOAwVO7i6BJOQNUX--SMCBs6tdhYyaC-x7PSGze0Ki33LU7pPc-yBhbLUdzGrxYLm1JF_IQ5QlVK2YRk5nFRSIimzylsPEkGHCd-nQciHC_m0Wetzldb-d49MNw6wZFsby8MQKVQJoWUVXM7LM-jZ5tmAmzxV1S0Py6LqUT7AAGL2RNax22YsNaOY214KTiSnIrT8eo3zmvzi28CdsapOIYxCFP8Z_JUAkjYAuow5ysxFkVvEGxr9d-W8TCyL36Sa4GgfEVvtzpcKpVmhzMllIXiXVh8ZdLJ_EuWomNSV_9veIy_ULmKo8B8tB6Uv2nlnFqGAxaf5DNYcqqQj4isHpEWFSR0ZIGU5ksoH_bY0pzQsf3wwii3KlzOJg.7WbHe_TOAdzgMW16sBvzIg
eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhHQ00ifQ.eqdAorvHKPTNE-W-UCjqS4zSPq4SpRgSYTaq-OAoVoo-WhZWaddAZulkh6jgiUZMEemXgOYHKUEGbAyEvWWXNFGh0aNFZ5l7hLFflFntfeAXFNz29wlESzFQDHOZkCGcGneGeOggl-UqnSB4tcCO4XK_xTrKuNo502W_snulCcTaZ9qrYI7cs6Isi5lz7Ad_FJ9nr72oLizcvEAfMzk8STYmKBPLFFSHuLcPaoloCPhUdrp-GHJeob0lHOzZ3ojWF86zkJSnae2oYAspE26nhhpCh0grLbuTo6UAvakisNx9S65W_FAnAZz_dBFBBS4B81F74N6Zah2h1t3yRSX8eQ.fFlAtF07orON0S1Y.qsR-Xzstlp6moQ-_JECP6S8SEnZ6Wg8jWYkpNNS1FChUbZpkKUvKUsywW_3iJG5-7GWfBn_EcAwRiXIBeG48qRaZc_VRrC8VvNQ35tendSum5d-Q1DQOjQXtb_gTyCum0TH81ebMbn3HruVURwW7xyOPHdDNPSD0ngO-mJsbwssc-lljMPMt2zvsEU61-6-amkFGMBjCp7L0PBcbfbsCWjq01MIH0qo8PS55Iflow8kDJ12X-tRl0H-uWzdQU2CZqFqXVgwdGhxKSmTeX00QKEHDj4W7IFjtlfTVPX_j8-IvGC73_02vndwKeulRytbv5uLAR8SLk8IlOc1Nm_FSXbW4vFtVymNIhZp7pHNHGKwo0VladHDCRWA8EaXtRewK1ELmSfpg3bJ53k9rLZLvh9fDiYO3MUTM9ngH12Zp.UKgCvG0F72AwK3MNb1EFFA
71 changes: 47 additions & 24 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,42 @@
build:
image: arduino/golang-linux-32
commands:
- apt-get update && apt-get install libgtk-3-dev libappindicator3-dev
- GOOS=linux GOARCH=386 CC=gcc CXX=gcc CGO_ENABLED=1 go build -o artifacts/linux-386/arduino-create-agent
- cp config.ini artifacts/linux-386
build:
image: arduino/golang-cross
auth_config:
username: $$DOCKER_USERNAME
password: $$DOCKER_PASSWORD
email: $$DOCKER_EMAIL
commands:
- apt-get update && apt-get install libgtk-3-dev libappindicator3-dev zip
# Linux amd64
- GOOS=linux GOARCH=amd64 CC=gcc CXX=gcc CGO_ENABLED=1 go build -o artifacts/linux-amd64/arduino-create-agent
- cp config.ini artifacts/linux-amd64
# Darwin amd64
- GOOS=darwin GOARCH=amd64 CC=o64-clang CXX=o64-clang CGO_ENABLED=1 go build -o artifacts/osx/arduino-create-agent
- cp config.ini artifacts/osx
# Windows 386
- GOOS=windows GOARCH=386 CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-gcc CGO_ENABLED=1 go build -o artifacts/windows/arduino-create-agent.exe -ldflags -H=windowsgui
- cp config.ini artifacts/windows
- zip -r arduino-create-agent.zip artifacts/*
crosscompilation:
image: arduino/golang-cross
auth_config:
username: $$DOCKER_USERNAME
password: $$DOCKER_PASSWORD
email: $$DOCKER_EMAIL
commands:
- go get github.com/kardianos/govendor
- govendor vet +local
- govendor test +local
# Linux amd64
- GOOS=linux GOARCH=amd64 CC=gcc CXX=gcc CGO_ENABLED=1 go build -o artifacts/linux-amd64/arduino-create-agent
- cp config.ini artifacts/linux-amd64
# Darwin amd64
- GOOS=darwin GOARCH=amd64 CC=o64-clang CXX=o64-clang CGO_ENABLED=1 go build -o artifacts/osx/arduino-create-agent
- cp config.ini artifacts/osx
# Windows 386
- GOOS=windows GOARCH=386 CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-gcc CGO_ENABLED=1 go build -o artifacts/windows/arduino-create-agent.exe -ldflags -H=windowsgui
- cp config.ini artifacts/windows
- zip -r arduino-create-agent.zip artifacts/*
linux32:
image: arduino/golang-linux-32
commands:
- GOOS=linux GOARCH=386 CC=gcc CXX=gcc CGO_ENABLED=1 go build -o artifacts/linux-386/arduino-create-agent
- cp config.ini artifacts/linux-386
notify:
slack:
webhook_url: $$SLACK_WEBHOOK
channel: $$SLACK_CHANNEL
username: drone
when:
event: [pull_request]
template: |
{{#success build.status}}
[{{ repo.name}}] Congrats {{ build.author }}! Your PR works: {{ build.link_url}}
{{else}}
[{{ repo.name}}] Damn {{ build.author }}! Something went wrong with your PR: {{ build.link_url}}
{{/success}}
publish:
github_release:
api_key: $$GITHUB_API_KEY
Expand All @@ -35,4 +45,17 @@ publish:
checksum:
- md5
when:
branch: [master, devel, test]
event: [tag]
notify:
slack:
webhook_url: $$SLACK_WEBHOOK
channel: $$SLACK_CHANNEL
username: drone
when:
event: [tag]
template: |
{{#success build.status}}
[{{ repo.name}}/{{ build.branch }}] A new release is available: {{ build.link_url}}
{{else}}
[{{ repo.name}}/{{ build.branch }}] Something went wrong while building a new release: {{ build.link_url}}
{{/success}}