forked from traggo/server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (53 loc) · 1.2 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
60
61
62
63
64
65
services:
- docker
sudo: required
language: go
go:
- "1.18.1"
addons:
apt:
packages:
- docker-ce
cache:
- yarn
notifications:
email: false
env:
global:
- UPX_VERSION="3.95"
- GO111MODULE=on
before_install:
- mkdir -p ~/bin/ && export PATH="~/bin/:$PATH"
- curl -fSL https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-amd64_linux.tar.xz -o ~/upx.tar.xz && tar -xf ~/upx.tar.xz -C ~ && mv ~/upx-${UPX_VERSION}-amd64_linux/upx ~/bin
- nvm install 11.11.0
- make download-tools
- docker version
install:
- make install
script:
- make generate
- make lint
- make test
- make build-js
after_success:
- bash <(curl -s https://codecov.io/bash)
before_deploy:
- >
if ! [ "$BEFORE_DEPLOY_RUN" ]; then
export BEFORE_DEPLOY_RUN=1;
if [[ $TRAVIS_TAG != "v"* ]]; then exit 1; fi;
make build-bin fix-build-owner package-zip build-docker;
fi
deploy:
- provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: build/*.zip
skip_cleanup: true
on:
tags: true
- provider: script
script: make docker-login-ci docker-push docker-push-manifest
skip_cleanup: true
on:
tags: true