forked from chirpstack/chirpstack-gateway-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (43 loc) · 1.78 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
language: go
sudo: required
dist: trusty
go:
- "1.10.x"
before_install:
- sudo apt-add-repository -y ppa:mosquitto-dev/mosquitto-ppa
- sudo apt-get -qq update
- sudo apt-get install -y mosquitto
- make requirements
script:
- make test
before_deploy:
- >
if ! [ "$BEFORE_DEPLOY_RUN" ]; then
export BEFORE_DEPLOY_RUN=1;
make dist;
rvm --default use system;
sudo apt-get install -y ruby ruby-dev;
sudo gem install --no-ri --no-rdoc fpm;
PACKAGE_ARCH=x86_64 make package-deb;
PACKAGE_ARCH=i386 make package-deb;
PACKAGE_ARCH=armhf make package-deb;
PACKAGE_ARCH=arm64 make package-deb;
mkdir -p dist/upload/tar;
mkdir -p dist/upload/deb;
mv dist/*.tar.gz dist/upload/tar;
mv dist/deb/*.deb dist/upload/deb;
fi
deploy:
- provider: s3
skip_cleanup: true
access_key_id: AKIAJRLX7TQLGT6NN7WQ
secret_access_key:
secure: OJZy+FZeI/S9wM/qqnTHAqjItI266K5tfIqx1+au1MC1QrXAV61NbTjKAo/xUGaKLOcTh1h1/KPTTdYZnQQa8e7QjA+1PF/89Ou7pIhMqWDKCNvFHUoUCTVCLf0f4dmKZcVTEZrobFct+ZhMq5mnzvuIvvf+TT4pfee1BUUpxbMWjA/HaMQIKfRxeb5tLyOnOkKg66Gd99trAY55r8SqPzkqcqvuOqeh7Ic2Uk+Uxlosf+9gRUIWHk7i4miiKvZQmPJfOOKTlvy3BStt1KGSycBt2mYkPAtAAScnobV8GHRcA0ZVI8Blp9W5/D18L43xAP+BRdBnoblr5GNnHGznlltYOskbTPuHzo8TVOl+8sct3uVwbrxg0rzJttAqkoMce7Xg4TLLe44gsp38YOyS4D2NzvEJZMvwoq1uCdR72JOANP5fxOxLnBO2weHy1K1F3SlXXaTJpQZ6lg2j/eaZO3V9tFFbqqHB4PdwQrZ9tjvuA2Dm6NNtQIMPeD8hq6Rq/6/4sXLi7+V8Sbl9f5W+FFfqKTFUl4WH1QPu/bFwC04UL1LDX9kO30Wg9Rlgc18S5HeMivofF1NVDnY+V8SV8lHVyHXASwSRl/OrMvRf21u5+wJf6U8E1s1cK/wYdIOSm6Rbot+6UK9M3ev8VALerqAr6uTVbCmm6Bqmlc+79jw=
bucket: builds.loraserver.io
local-dir: dist/upload
upload-dir: lora-gateway-bridge
acl: private
region: eu-west-1
on:
tags: true
repo: brocaar/lora-gateway-bridge