-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
48 lines (47 loc) · 2.15 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
language: node_js
node_js:
- '8'
matrix:
include:
- os: linux
dist: trusty
sudo: required
env:
- DEPLOY="true"
- MAIN="true"
before_install:
- npm i -g npm@latest
- sudo apt-get install -y librtlsdr-dev libflac-dev rpm
- os: linux
dist: xenial
sudo: required
env:
- DEPLOY="false"
- ARCH="arm"
before_install:
- npm i -g npm@latest
- sudo apt-get install -y libc6-dev-armhf-cross linux-libc-dev-armhf-cross g++-arm-linux-gnueabihf && sudo sed 's~\(\(deb\(-src\)*\) \([^\[]\)\)~\2 [arch=amd64] \4~' /etc/apt/sources.list | sudo tee /etc/apt/sources.list && sudo bash -c 'echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports/ xenial main multiverse restricted universe" > /etc/apt/sources.list.d/arm-repo.list' && sudo dpkg --add-architecture armhf && sudo apt-get update && sudo apt-get install -y libc6:armhf libudev1:armhf libusb-1.0-0:armhf libusb-1.0-0-dev:armhf librtlsdr0:armhf librtlsdr-dev:armhf
- os: osx
before_install:
- npm i -g npm@latest
- brew install flac rtl-sdr
cache:
directories:
- node_modules
notifications:
email: false
install:
- if [ -n "$ARCH" ]; then bash ./build-arm.sh; fi
- if [ -z "$ARCH" ]; then npm install; fi
script:
- if [ -n "$ARCH" ]; then npm run distarm; fi
- if [ -z "$ARCH" ]; then npm run test && npm run dist; fi
deploy:
provider: releases
api_key:
secure: CwPd/TKCocPc/6N9QHAKuRuHyqkIuPUwWIDuemdwh0bqmRd9YvQ5PMQuKtH+ZPx2LEuTuty7q4Ryvpy4PW5nfMgSDnWngxHLZ+6mPm3LaKKm3eJ97W8P1zkxruZMGfB6WdAdgbRFCmbYfaiiGy2XsSkgtBQhVvFMYm/2zwvDBePHMfswIk89Fu0iUoONx5RzUa7Ugv7N6fOtvBMg64JKWr6bJ377DLo3JQ9r4/qdXpK2a/LBynaJahmiDN6mxTBigWXQvsZanQkpwDQUqz0qKxow4bmNzrHhbEjXwNUtWk8QN5R5LbjFEn58VF8f379mDStkehYBKs+U468PoROAAgkHlh6IGyWSAXzbd5clII5u7Ry+TBRDCVjVxuTe9tADvMhdN+jZYM3QKVvN12yIwKjJB1OObETmuvro897dg7TJfV6gq5HcwYcSAXY2INEIlcmr25n5HxD5DyYiTZ8kXhPvkC2NWbd89MMW2jRUFDosSsbHuN/hKGrWF/bPBJfjAH7RrzaRHEmziM39njmqq9eG0xnb1+rW7U+KDbYIjY0+WSUh/ErJ8Xu3wkHlV9PGiYFdb13hi5dWrwfdHEHyH5Ugx6BSy4NAIvkY6Hfo/pVFz0H09b1uKX3cUkyzpQgPqq3XkovsiTWg1TxGT9QkD2GCw9ZmVPzO5cgoTu3WdyQ=
file_glob: true
file: dist/*
skip_cleanup: true
on:
repo: dmooney65/fmradio