-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
74 lines (73 loc) · 3.03 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
dist: xenial
env:
global:
- COMMIT=${TRAVIS_COMMIT::8}
- GO111MODULE=on
matrix:
include:
- language: go
go:
- 1.11.x
git:
depth: 1
before_install:
- sudo add-apt-repository ppa:opensatelliteproject/ppa -y
- sudo add-apt-repository ppa:opensatelliteproject/drivers -y
- sudo add-apt-repository ppa:myriadrf/gnuradio -y
- sudo apt-get -qq update
- sudo apt-get install -y libaec-dev libaec0 libcorrect libsathelper libsoapysdr0.6 libairspy0 libsoapysdr-dev libairspy-dev git g++ cmake libsqlite3-dev libi2c-dev libusb-1.0-0-dev
- echo "Building RTLSDR"
- git clone https://github.com/librtlsdr/librtlsdr.git
- cd librtlsdr
- mkdir build && cd build
- cmake ..
- make -j10
- sudo make install
- sudo ldconfig
- cd ../..
- echo "Building Static LimeSuite"
- git clone https://github.com/myriadrf/LimeSuite.git
- cd LimeSuite
- git checkout stable
- mkdir builddir && cd builddir
- cmake ../
- make -j10
- sudo make install
- sudo ldconfig
- cd ../..
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.15.0
script:
- go get
- make test
- golangci-lint run
- ./travis-build.sh
deploy:
- provider: releases
api_key:
secure: cID0Ex92EsQRN6Xsh1ngF9jZVqiVdYCNC2JhnEbnTtipb5Z00m8wasdo3R22aafGUkaWpcg0zbRRSC/VCMqrLj6PRoKJ0KBtOQA4BiJ3xc4YkWg2nmwOs19KSn61vO6VIrIDfQfBSlavfTsUdLKc0tE2QGxkw2j49Y8+0vswynXvx9yQ+renigtS8yhK6FT6VpIQ1+Yqx0DSN7XnFyAlqA1fymx32GzXIFhs1llOUiUPmnyOryJFfJxus8GGf1f8QX+elgBEN08nYkvc2yGlhh/+LhY7SBcdKgR3acHvhooaxmuPXfC92OVlrizV27wLsTX913jT7ELm5kGqEP7FuBpE4kvxoZhcZI71vt5P3CR60ELz9vTfN+U2YTnaZ43Nlgjwzq9SfQPxXBF2FLGEEBd4zkuEKGvATYLrI1WdPo1Zns85viFWo3X65eZ/WW2tK+m5wVYQmMWw8RYc/ANrVdovzX6Ss+Z2hTh9qvGNjy1Ph+qvaVU9cdeO8JM9r9+Xsm4UTGZ7nUEnYN5DbeZ7aDGk4p8E67B19Xvroyzt/JEIrfH3C+y+eX1YZOS74xi9REeFzje90SODBh18onsI6sfssw+AHE7H24hMfHadjUWqMzx/5vgCi/pyP13inuwasCrqS13XJEvlY3elwhdFVbb8OkwVW99Ukkzn+rq5tVE=
file_glob: true
file: zips/*
skip_cleanup: true
on:
tags: true
repo: opensatelliteproject/SatHelperApp
- language: bash
addons:
snaps:
- name: snapcraft
classic: true
services: [docker]
script:
- sudo apt-get -qq update && sudo apt-get install libusb-1.0-0 swig swig3.0
- docker run --rm -v "$PWD":/build -w /build snapcore/snapcraft bash -c "apt update && snapcraft"
- ls -lah
deploy:
- provider: snap
snap: sathelperapp*.snap
channel: edge
skip_cleanup: true
on:
tags: true
repo: opensatelliteproject/SatHelperApp
after_success:
- openssl aes-256-cbc -K $encrypted_f24dcc1fa9db_key -iv $encrypted_f24dcc1fa9db_iv -in .snapcraft/travis_snapcraft.cfg -out .snapcraft/snapcraft.cfg -d