1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-16 09:25:57 -05:00
OpenDiablo2/.travis.yml

44 lines
1.4 KiB
YAML
Raw Normal View History

2019-10-24 10:03:49 -04:00
language: go
os:
- linux
- osx
- windows
2019-10-26 13:42:19 -04:00
go:
2019-10-26 16:25:26 -04:00
- 1.13.3
addons:
apt:
packages:
- libx11-dev
- mesa-common-dev
- libglfw3-dev
- libgles2-mesa-dev
- libasound2-dev
script:
2019-11-02 14:13:40 -04:00
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then choco install 7zip.portable ; fi
2019-11-02 14:38:47 -04:00
- mkdir -p ./opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME
2019-11-02 11:39:27 -04:00
- go get
- go build -ldflags "-X main.GitCommit=$TRAVIS_COMMIT -X main.GitBranch=$TRAVIS_TAG"
2019-11-02 16:25:24 -04:00
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then ./rh.exe -open OpenDiablo2.exe -save OpenDiablo2.exe -action addskip -res d2logo.ico -mask ICONGROUP,MAIN, ; fi
2019-11-02 13:53:45 -04:00
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then cp ./OpenDiablo2.exe ./opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME ; else cp ./OpenDiablo2 ./opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME; fi
- cp ./d2logo.png ./opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME
2019-11-02 14:09:41 -04:00
- 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
2019-11-02 11:39:27 -04:00
git:
2019-11-02 14:38:47 -04:00
quiet: true
2019-11-02 11:39:27 -04:00
depth: 1
notifications:
email: false
before_deploy:
- git tag dev
deploy:
provider: releases
api_key:
secure: "$GithubApi"
2019-11-02 14:38:47 -04:00
file_glob: true
file: opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME.*
skip_cleanup: true
2019-11-02 13:49:24 -04:00
overwrite: true
name: "OpenDiablo Unstable (Build $TRAVIS_BUILD_NUMBER)"
2019-11-02 13:28:38 -04:00
prerelease: true
on:
branch: master