forked from b3nn0/stratux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
20 lines (17 loc) · 1003 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
machine:
environment:
PATH: $HOME/go/bin:$HOME/gopath/bin:$PATH
GOPATH: $HOME/gopath
dependencies:
pre:
- sudo apt-get update; sudo apt-get install libusb-1.0-0-dev mercurial; cd ~/; git clone https://github.com/jpoirier/librtlsdr; cd librtlsdr; mkdir build; cd build; cmake ../; make; sudo make install; sudo ldconfig; cd ~/; rm -rf gopath; mkdir gopath; wget https://dl.google.com/go/go1.9.2.linux-amd64.tar.gz; tar -zxvf go1.9.2.linux-amd64.tar.gz; go version; env
override:
- cd .. ; rm -rf stratux ; git clone --recursive https://github.com/cyoung/stratux ; cd stratux ; git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*" ; git fetch origin ; BRANCH=`echo "$CIRCLE_BRANCH" | sed 's/pull\//pr\//g'` ; git checkout $BRANCH ; make
test:
override:
- make
deployment:
production:
branch: master
commands:
- yes | ssh -i ~/.ssh/id_updates.stratux.me [email protected] "touch queue/`git log -n 1 --pretty=%H`"