forked from appsody/appsody
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (51 loc) · 1.13 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
55
56
57
58
59
language: go
go:
- 1.12.x
go_import_path: github.com/appsody/appsody
services:
- docker
# skip the default language's install and script steps, we implement job stages instead
install: skip
script: skip
stages:
- name: lint
- name: test
- name: deploy
if: tag IS present
test-template: &test-template
stage: test
install: if [ "$TRAVIS_OS_NAME" = "windows" ]; then choco install make; fi
script: make cover
jobs:
include:
- name: Lint
stage: lint
os: linux
script: make lint
- <<: *test-template
name: Full Test on Linux
os: linux
- <<: *test-template
name: Unit Test on MacOS
os: osx
script: make unittest
- <<: *test-template
name: Unit Test on Windows
os: windows
script:
- make unittest
- name: Deploy Release
stage: deploy
os: linux
script:
- make VERSION=${TRAVIS_TAG} package
- make deploy
deploy:
provider: releases
skip_cleanup: true
api_key: $GH_TOKEN
file: package/*
file_glob: true
on:
branch: master
tags: true