2019-08-06 20:11:01 -04:00
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: test
|
|
|
|
language: go
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- windows
|
|
|
|
go:
|
|
|
|
- 1.10.x
|
|
|
|
- 1.11.x
|
|
|
|
- 1.12.x
|
|
|
|
- 1.x
|
|
|
|
install:
|
|
|
|
- go get github.com/apexskier/httpauth
|
|
|
|
- go get github.com/go-ini/ini
|
|
|
|
- go get github.com/gorilla/mux
|
|
|
|
- go get github.com/hpcloud/tail
|
|
|
|
- go get github.com/gorilla/websocket
|
|
|
|
- go get github.com/majormjr/rcon
|
|
|
|
script:
|
|
|
|
- go test -v ./...
|
|
|
|
- stage: deploy
|
|
|
|
language: minimal
|
|
|
|
before_install:
|
|
|
|
- docker build -f "docker/Dockerfile-build" -t factorio-server-manager docker
|
|
|
|
script:
|
|
|
|
- mkdir /home/travis/build/mroote/build
|
|
|
|
- docker run -t -e FAC_BRANCH=$TRAVIS_BRANCH -v /home/travis/build/mroote/build:/build factorio-server-manager
|
2019-08-07 20:05:26 -04:00
|
|
|
- mv /home/travis/build/mroote/build/factorio-server-manager-linux.zip /home/travis/factorio-server-manager-linux-${TRAVIS_TAG}.zip
|
|
|
|
- mv /home/travis/build/mroote/build/factorio-server-manager-windows.zip /home/travis/factorio-server-manager-windows-${TRAVIS_TAG}.zip
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
2019-08-07 20:26:43 -04:00
|
|
|
api_key: "${GITHUB_TOKEN}"
|
|
|
|
draft: true
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
branch: develop
|
2019-08-07 20:05:26 -04:00
|
|
|
file:
|
|
|
|
- /home/travis/factorio-server-manager-linux-${TRAVIS_TAG}.zip
|
|
|
|
- /home/travis/factorio-server-manager-windows-${TRAVIS_TAG}.zip
|