mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-10-31 00:07:17 -04:00
Update .travis.yml
This commit is contained in:
parent
37ff5c4985
commit
542ca94ca1
@ -15,12 +15,13 @@ addons:
|
|||||||
- libgles2-mesa-dev
|
- libgles2-mesa-dev
|
||||||
- libasound2-dev
|
- libasound2-dev
|
||||||
script:
|
script:
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "windows" ]; choco install 7zip.portable ; fi
|
||||||
- mkdir -p ./opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME
|
- mkdir -p ./opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME
|
||||||
- go get
|
- go get
|
||||||
- go build .
|
- go build .
|
||||||
- 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
|
- 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 ./config.json ./opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME
|
- cp ./config.json ./opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME
|
||||||
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then zip -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
|
- 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:
|
git:
|
||||||
depth: 1
|
depth: 1
|
||||||
notifications:
|
notifications:
|
||||||
@ -30,6 +31,7 @@ deploy:
|
|||||||
api_key:
|
api_key:
|
||||||
secure: "$GithubApi"
|
secure: "$GithubApi"
|
||||||
file_glob: true
|
file_glob: true
|
||||||
|
|
||||||
file: opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME.*
|
file: opendiablo2-$TRAVIS_TAG-$TRAVIS_OS_NAME.*
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
Loading…
Reference in New Issue
Block a user