forked from JustaPenguin/assetto-server-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (36 loc) · 747 Bytes
/
.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
language: go
go:
- 1.15
services:
- docker
addons:
apt:
packages:
- dos2unix
before_install:
- nvm install 12
- nvm use 12
- make install-linter
install:
- node -v
- git --version
- go version
script:
- make generate
- make vet
# run a go build before doing deployment to ensure that the package is importable
- go build
- VERSION=${TRAVIS_TAG} make deploy
deploy:
- provider: releases
api_key: $OAUTH_TOKEN
file:
- cmd/server-manager/server-manager_$TRAVIS_TAG.zip
skip_cleanup: true
on:
tags: true
- provider: script
script: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD && VERSION=${TRAVIS_TAG} make docker
skip_cleanup: true
on:
tags: true