-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
38 lines (33 loc) · 997 Bytes
/
wercker.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
31
32
33
34
35
36
37
38
box: iot-fw-ci.sakuracr.jp/sdk-nrf:1.7.1
build:
steps:
- script:
name: echo gcc version
code : |
arm-none-eabi-gcc -v
- script:
name: build binalies
code: |
bash wercker.sh
cp -v dist/sipf-std-client_nrf9160.tar.gz "${WERCKER_OUTPUT_DIR}"
after-steps:
- slack-notifier:
url: $SLACK_WEBHOOK_URL
channel: "#iot-pf-firmware-ci"
username: werckerbot
deploy:
box: ubuntu:20.04
steps:
- script:
name: install curl
code: |
apt update && apt install -y curl
- script:
name: upload to slack
code: |
curl -F file=@sipf-std-client_nrf9160.tar.gz -F channels=#iot-pf-firmware-ci -F token=$SLACK_TOKEN -F filename=sipf-std-client_nrf9160_$WERCKER_GIT_COMMIT.tar.gz https://slack.com/api/files.upload
after-steps:
- slack-notifier:
url: $SLACK_WEBHOOK_URL
channel: "#iot-pf-firmware-ci"
username: werckerbot