factorio-server-manager/.travis.yml
2020-01-07 18:53:06 -05:00

36 lines
1.3 KiB
YAML

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
- 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
api_key: ""
file:
- /home/travis/factorio-server-manager-linux-${TRAVIS_TAG}.zip
- /home/travis/factorio-server-manager-windows-${TRAVIS_TAG}.zip