factorio-server-manager/.travis.yml

32 lines
1.3 KiB
YAML
Raw Normal View History

2019-08-07 02:11:01 +02:00
jobs:
include:
- stage: deploy
2020-01-29 03:12:56 +02:00
language: go
go: 1.x
2020-01-29 02:59:37 +02:00
before_install:
- curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
- sudo apt-get install -y nodejs
2020-01-29 02:23:51 +02:00
# - docker build -f "docker/Dockerfile-build" -t factorio-server-manager docker
2019-08-07 02:11:01 +02:00
script:
2020-01-29 02:23:51 +02:00
# - pwd
# - echo ~
# - mkdir -p /home/travis/build/mroote/build
# - docker run -t -e FAC_BRANCH=$TRAVIS_BRANCH -v /home/travis/build/mroote/build:/build factorio-server-manager
2020-01-29 02:59:37 +02:00
- cd src/
- go test -v
- cd ..
2020-01-29 02:23:51 +02:00
- make gen_release
2020-01-29 02:59:37 +02:00
- mv factorio-server-manager-linux.zip ~/factorio-server-manager-linux-${TRAVIS_TAG}.zip
- mv factorio-server-manager-windows.zip ~/factorio-server-manager-windows-${TRAVIS_TAG}.zip
# - 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
2019-08-08 02:05:26 +02:00
deploy:
provider: releases
2019-08-08 02:26:43 +02:00
api_key: "${GITHUB_TOKEN}"
draft: true
skip_cleanup: true
on:
tags: true
2019-08-08 02:05:26 +02:00
file:
2020-01-29 02:59:37 +02:00
- ~/factorio-server-manager-linux-${TRAVIS_TAG}.zip
- ~/factorio-server-manager-windows-${TRAVIS_TAG}.zip