-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
54 lines (51 loc) · 1.55 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
language: minimal
os: linux
dist: bionic
services:
- docker
stages:
- name: test
- name: deploy static dev
- name: deploy static release
jobs:
include:
- stage: test
name: "Test with Docker image"
script:
- docker build -t mpinese/nimpress .
- docker run --entrypoint nimble mpinese/nimpress test
- stage: deploy static develop
name: "Build and deploy static binary: development"
script:
- wget https://github.com/brentp/hts-nim/releases/download/v0.2.8/hts_nim_static_builder
- chmod +x hts_nim_static_builder
- ./hts_nim_static_builder -s ./src/nimpress.nim -n ./nimpress.nimble
- mv nimpress nimpress-develop-x86_64
deploy:
provider: releases
edge: true
token: $GITHUB_TOKEN
file: nimpress-develop-x86_64
skip_cleanup: true
draft: true
overwrite: true
on:
branch: develop
- stage: deploy static release
name: "Build and deploy static binary: release"
script:
- wget https://github.com/brentp/hts-nim/releases/download/v0.2.8/hts_nim_static_builder
- chmod +x hts_nim_static_builder
- ./hts_nim_static_builder -s ./src/nimpress.nim -n ./nimpress.nimble
- mv nimpress nimpress-v${TRAVIS_TAG}-x86_64
deploy:
provider: releases
edge: true
token: $GITHUB_TOKEN
file: nimpress-v${TRAVIS_TAG}-x86_64
skip_cleanup: true
draft: false
overwrite: false
on:
tags: true
branch: master