1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-07-18 03:04:15 -04:00
OpenDiablo2/.travis.yml

41 lines
900 B
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:
- go get
- go build .
2019-10-24 10:03:49 -04:00
git:
depth: 1
notifications:
email: false
2019-11-02 11:29:30 -04:00
before_deploy:
- git config --local user.name "$GitUser"
- git config --local user.email "$GitEmail"
- git tag Build-Master-$TRAVIS_OS_NAME
2019-11-02 11:35:03 -04:00
- git commit -m "Update build version file with $TRAVIS_BUILD_NUMBER"
2019-11-02 11:29:30 -04:00
- mkdir -p ./build_artifacts
- if [ "$TRAVIS_OS_NAME" = "win" ]; then cp ./OpenDiablo2.exe ./build_artifacts ; else cp ./OpenDiablo2 ./build_artifacts fi
- cp ./config.json ./build_artifacts
deploy:
provider: releases
api_key:
secure: "$GithubApi"
file_glob: true
file: build_artifacts/*
skip_cleanup: true
name: "OpenDiablo Git Latest ($TRAVIS_OS_NAME)"
on:
tags: true