factorio-server-manager/.travis.yml
2020-11-20 15:07:41 -05:00

39 lines
876 B
YAML

language: go
go:
- 1.14.x
- 1.x
os:
- linux
- windows
env:
- GO111MODULE=on
script:
- cd src/
- go test -v
jobs:
include:
- stage: deploy
go: 1.x
os: linux
before_install:
- curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
- sudo apt-get install -y nodejs
script:
- make gen_release
- mv build/factorio-server-manager-linux.zip ~/factorio-server-manager-linux-${TRAVIS_TAG}.zip
- mv build/factorio-server-manager-windows.zip ~/factorio-server-manager-windows-${TRAVIS_TAG}.zip
deploy:
provider: releases
api_key: "${GITHUB_TOKEN}"
draft: true
skip_cleanup: true
on:
tags: true
file:
- ~/factorio-server-manager-linux-${TRAVIS_TAG}.zip
- ~/factorio-server-manager-windows-${TRAVIS_TAG}.zip