1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-06 07:50:42 +00:00

CI updates

This commit is contained in:
Tim Sarbin 2019-11-02 14:38:47 -04:00
parent 52d15d07c9
commit 267fe9b615
2 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,3 @@
if: tag IS present
language: go
os:
- linux
@ -16,7 +15,8 @@ addons:
- libasound2-dev
script:
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then choco install 7zip.portable ; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then OUTEXT=.zip ; else OUTEXT=.tar.gz ; fi
- mkdir -p ./opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME
- rm -rf ./opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME
- mkdir -p ./opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME
- go get
- go build .
@ -24,14 +24,17 @@ script:
- cp ./config.json ./opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then 7z a -r opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME.zip ./opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME ; else tar -cvzf opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME.tar.gz ./opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME ; fi
git:
quiet: true
depth: 1
notifications:
email: false
deploy:
if: tag IS present AND TRAVIS_PULL_REQUEST=false
provider: releases
api_key:
secure: "$GithubApi"
file: opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME.$OUTEXT
file_glob: true
file: opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME.*
skip_cleanup: true
overwrite: true
name: "OpenDiablo Unstable (Build $TRAVIS_BUILD_NUMBER)"

View File

@ -1,4 +1,4 @@
# OpenDiablo2 [![Build Status](https://travis-ci.org/essial/OpenDiablo2.svg?branch=master)](https://travis-ci.org/essial/OpenDiablo2)
# OpenDiablo2 [![Build Status](https://travis-ci.org/essial/OpenDiablo2.svg?branch=dev)](https://travis-ci.org/essial/OpenDiablo2)
[Join us on Discord!](https://discord.gg/pRy8tdc)\
[Development Live stream](https://www.twitch.tv/essial/)