-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
37 lines (37 loc) · 1.71 KB
/
.travis.yml
File metadata and controls
37 lines (37 loc) · 1.71 KB
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
language: go
sudo: false
env:
- GO111MODULE=on
go:
- 1.13.x
matrix:
include:
- os: linux
- os: osx
osx_image: xcode11.3
- os: windows
before_script:
- go mod tidy
- mkdir -p bin
- FILE_NAME="$TRAVIS_OS_NAME"
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then FILE_NAME=windows.exe ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cd scripts && tar cvf ../bin/framework.tar framework; tar cvf ../bin/games.tar games; cd .. ; fi
script:
- git describe --exact-match HEAD; if [ $? -eq 0 ]; then version_flag="-X 'main.Version=`git describe --exact-match HEAD`'"; else version_flag="-X 'main.Version=v0.0.0'"; fi
- echo $version_flag
- go build -ldflags "$version_flag" -o bin/alu-"$FILE_NAME" cmd/alu/main.go
- ls -alh ./
- ls -alh bin
install:
- export GOPATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace:$GOPATH"
- export PATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace/bin:$PATH"
deploy:
provider: releases
api_key:
secure: x9i3SbzwMWODTsW32hSLYfhAvj55AxjYT2YGoNmVtEvhrMq/P6/Y9EfRhr24nrIf8vspDiLnC59VHsAajyrotawmfNMRiZqKeVVFyafeYw0iGR4vJ3Z/xS3GD0FdYNQ/CYPLtmnvSeXRNv7SJXiIS/JczU36CX8sLCN20vZYk7aTvjfRrvvvcxrDqbuP3gnvcGvQR4fbP2CiIcxmmczItXapR1VkOpkj6Ybvw34Rd1Pf2g1QwnOvdCLcEAA8OMyFPbKkl8Q2U+ZToYEVLxKRZ1BNWAr643XtS8CFvMX1xqYPrnQihFqEhLdgaz4lOYVKpK2Bad+RHU+xEWzgVxnf2ejj54VeXJu0s81yOEE37ETKxQOS+5Y/+8SzNXNgxa75vy6aRxBrvo9ye/EtA1Y3KLcWcIXJd2DhM/UZ9vDoJbYr9op71vpSkmKksWbM1tbxSU/k0pMaHTNk+qmvBhZdUcdtUx8cTggb6LhLw00BgqFoJclNU52jVWPH2pDbMz9yeSyRwfP9hRx0irG8LurG0UZSMPud7/jVFoKbz+PxtadR+eaWXHbO/MuyoiC7sHWKcaBqhf4y48y71pXNwc4nwLz+pAwKBEbf/XSmQehqoFlh7lT0HrP+6LUsvDsenbTqOkFzlMvWhU3WrraqBvrDPF3G+w+ZY7Lj6qlKuAWAS7A=
file: bin/*
file_glob: true
skip_cleanup: true
on:
repo: BabyEngine/Backend
tags: true