Skip to content

Commit 4c5f075

Browse files
committed
Use travis to build/release Linux binaries
Only does the deploy phase for tagged commits Contributes towards luvit#200
1 parent d104cb7 commit 4c5f075

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.travis.yml

+25
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,28 @@ notifications:
3434
on_success: change # options: [always|never|change] default: always
3535
on_failure: always # options: [always|never|change] default: always
3636
on_start: false # default: false
37+
38+
jobs:
39+
include:
40+
- stage: deploy
41+
if: tag IS present
42+
os: linux
43+
env: []
44+
script:
45+
# fetch tags so that git describe works
46+
- git fetch --unshallow
47+
- make linux-build
48+
services:
49+
- docker
50+
deploy:
51+
provider: releases
52+
api_key: $GITHUB_OAUTH_TOKEN
53+
file:
54+
- "luvi-regular-Linux_x86_64"
55+
- "luvi-tiny-Linux_x86_64"
56+
- "luvi-regular-Linux_i686"
57+
- "luvi-tiny-Linux_i686"
58+
overwrite: true
59+
skip_cleanup: true
60+
on:
61+
tags: true

0 commit comments

Comments
 (0)