Skip to content

Commit

Permalink
Travis: Pushing release to GH
Browse files Browse the repository at this point in the history
  • Loading branch information
johanfagerstroem committed Jul 5, 2018
1 parent a77b009 commit 5af8fa4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
18 changes: 14 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,29 @@ jobs:
- stage: armhf
language: c
compiler: arm-linux-gnueabihf-gcc
script: make && cp axisdiscovery axisdiscovery-armhf
script: make
before_install:
- sudo apt-get update -qq
- sudo apt-get install gcc-arm-linux-gnueabihf
deploy:
provider: releases
api_key:
secure: e69wxFR627XN5l2OGZiDQxQq94gfQeurhY+cAH3Cd5EUgGh/biTNcS6YrDZb/xFqGnyhqYt4LMDERsn1Z2xaaPUBYpVeZ21LAjtbrKNY2QWBXa1E+frqFlxwDUEP1A2fq7Rz45f2SR1ltmpiHj/O36XeBpuqyffWN1OyYpmYzTQ2teoR5K5fJQTaj8bGcXBhL/moAXd1+EpsWJxKpiYHBeVtolu5kASNuH0/DZLMeP9s4i50rn8cLGm0z2F+Gbb+dPffMZiWj67O4mCYlobwLXf2nl56aSuBmgNO1WteFCB8LF9O4BOe+7VI9nYzIz62xStOcfFZEkKhk4nJnaUtTZ/49CbB14fUNtLEn30/2bEkeYqrYw5gEevj/aw9kkvjSinI87wK5X308y4ob1XejD9ObZQAx4ZSpgETXjQBUaroAnC/FWhmaichTYBrr14CtNtHMhdrun9YF/ttsY05RSLbtGapdKtMQFsaknsVBU7a7X5p2FFVyWHqaPZjuoYZI31w9mXcBQJFLCCJmDAif5Vb3Smu90cl/l3/v8qJo2mxrNLk338Wekzf9JVJ7hSmcfrHzA4/BLAFtD+5gixqTkfu7OHsfoM/3WRtUWtHQqZngblp8GGRQESFbp/DNA3kGICyKoBrzEUScloB1vo061DSJWn4gTL21USmnJViH9s=
file_glob: true
file: "axisdiscovery-*"
skip_cleanup: true
on:
tags: true
- stage: x86
language: c
compiler: x86_64-linux-gnu-gcc
script: make && cp axisdiscovery axisdiscovery-x86_64
script: make
deploy:
provider: releases
api_key:
secure: e69wxFR627XN5l2OGZiDQxQq94gfQeurhY+cAH3Cd5EUgGh/biTNcS6YrDZb/xFqGnyhqYt4LMDERsn1Z2xaaPUBYpVeZ21LAjtbrKNY2QWBXa1E+frqFlxwDUEP1A2fq7Rz45f2SR1ltmpiHj/O36XeBpuqyffWN1OyYpmYzTQ2teoR5K5fJQTaj8bGcXBhL/moAXd1+EpsWJxKpiYHBeVtolu5kASNuH0/DZLMeP9s4i50rn8cLGm0z2F+Gbb+dPffMZiWj67O4mCYlobwLXf2nl56aSuBmgNO1WteFCB8LF9O4BOe+7VI9nYzIz62xStOcfFZEkKhk4nJnaUtTZ/49CbB14fUNtLEn30/2bEkeYqrYw5gEevj/aw9kkvjSinI87wK5X308y4ob1XejD9ObZQAx4ZSpgETXjQBUaroAnC/FWhmaichTYBrr14CtNtHMhdrun9YF/ttsY05RSLbtGapdKtMQFsaknsVBU7a7X5p2FFVyWHqaPZjuoYZI31w9mXcBQJFLCCJmDAif5Vb3Smu90cl/l3/v8qJo2mxrNLk338Wekzf9JVJ7hSmcfrHzA4/BLAFtD+5gixqTkfu7OHsfoM/3WRtUWtHQqZngblp8GGRQESFbp/DNA3kGICyKoBrzEUScloB1vo061DSJWn4gTL21USmnJViH9s=
file: axisdiscovery-x86_64
file_glob: true
file: "axisdiscovery-*"
skip_cleanup: true
on:
tags: false
tags: true
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
PROG="axisdiscovery"
SRC="main.c"

BASENAME="axisdiscovery"
VERSION=$(shell git describe --always --dirty)
MACHINE=$(shell $(CC) -dumpmachine)

CFLAGS=-Wall -DVERSION=\"$(VERSION)\"

PROG = $(BASENAME)-$(VERSION)-$(MACHINE)

all: $(PROG)

$(PROG): $(SRC)
Expand Down

0 comments on commit 5af8fa4

Please sign in to comment.