2019-11-02 12:00:56 -04:00
|
|
|
if: tag IS present
|
2019-10-24 10:03:49 -04:00
|
|
|
language: go
|
2019-11-02 11:15:02 -04:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
- windows
|
2019-10-26 13:42:19 -04:00
|
|
|
go:
|
2019-10-26 16:25:26 -04:00
|
|
|
- 1.13.3
|
2019-11-02 11:15:02 -04:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libx11-dev
|
|
|
|
- mesa-common-dev
|
|
|
|
- libglfw3-dev
|
|
|
|
- libgles2-mesa-dev
|
|
|
|
- libasound2-dev
|
|
|
|
script:
|
2019-11-02 13:23:49 -04:00
|
|
|
- mkdir -p ./build_artifacts/opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME
|
|
|
|
- mkdir -p ./build_artifacts/out
|
2019-11-02 11:39:27 -04:00
|
|
|
- go get
|
|
|
|
- go build .
|
2019-11-02 13:23:49 -04:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "win" ]; then cp ./OpenDiablo2.exe ./build_artifacts/opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME ; else cp ./OpenDiablo2 ./build_artifacts/opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME; fi
|
|
|
|
- cp ./config.json ./build_artifacts/opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME
|
|
|
|
- tar -cvzf opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME.tar.gz ./build_artifacts/$TRAIVS_OS_NAME
|
2019-11-02 11:39:27 -04:00
|
|
|
git:
|
|
|
|
depth: 1
|
|
|
|
notifications:
|
|
|
|
email: false
|
2019-11-02 11:15:02 -04:00
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key:
|
|
|
|
secure: "$GithubApi"
|
2019-11-02 13:23:49 -04:00
|
|
|
file: opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME.tar.gz
|
2019-11-02 11:15:02 -04:00
|
|
|
skip_cleanup: true
|
2019-11-02 13:28:38 -04:00
|
|
|
name: "OpenDiablo Unstable"
|
|
|
|
prerelease: true
|
2019-11-02 11:15:02 -04:00
|
|
|
on:
|
|
|
|
tags: true
|