-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (24 loc) · 1.17 KB
/
.travis.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
language: go
sudo: required
go:
- 1.7
install:
- make dependencies
script:
- make stat
after_success:
# grab pub/pri keys
- curl -d sec=$BINDER_SEC -d key=unixvoid.pub https://cryo.unixvoid.com/getfile --output unixvoid.pub
- curl -d sec=$BINDER_SEC -d key=unixvoid.sec https://cryo.unixvoid.com/getfile --output unixvoid.sec
# upload binary to binder
- curl -i --form sec=$BINDER_SEC --form file=@`ls bin/go_ip_updater*` --form path=go_ip_updater/ https://cryo.unixvoid.com/upload
- curl -i --form sec=$BINDER_SEC --form file=@`ls bin/go_ip_updater*` --form filename=go_ip_updater-latest-linux-amd64 --form path=go_ip_updater/ https://cryo.unixvoid.com/upload
# build aci
- make clean build_travis_aci
- mv go_ip_updater.aci go_ip_updater-latest-linux-amd64.aci
# sign aci
- cp deps/sign.sh . && chmod +x sign.sh
- ./sign.sh $GPG_SEC
# upload aci to binder
- curl -i --form sec=$BINDER_SEC --form file=@go_ip_updater-latest-linux-amd64.aci --form path=rkt/go_ip_updater/ https://cryo.unixvoid.com/upload
- curl -i --form sec=$BINDER_SEC --form file=@go_ip_updater-latest-linux-amd64.aci.asc --form path=rkt/go_ip_updater/ https://cryo.unixvoid.com/upload