32 lines
1.3 KiB
YAML
Raw Normal View History

2019-08-06 20:11:01 -04:00
jobs:
include:
- stage: deploy
2020-01-29 02:05:06 +01:00
go: 1.13.x
2019-08-06 20:11:01 -04:00
language: minimal
2020-01-29 01:59:37 +01:00
before_install:
- curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
- sudo apt-get install -y nodejs
2020-01-29 01:23:51 +01:00
# - docker build -f "docker/Dockerfile-build" -t factorio-server-manager docker
2019-08-06 20:11:01 -04:00
script:
2020-01-29 01:23:51 +01: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 01:59:37 +01:00
- cd src/
- go test -v
- cd ..
2020-01-29 01:23:51 +01:00
- make gen_release
2020-01-29 01:59:37 +01: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-07 20:05:26 -04:00
deploy:
provider: releases
2019-08-07 20:26:43 -04:00
api_key: "${GITHUB_TOKEN}"
draft: true
skip_cleanup: true
on:
tags: true
2019-08-07 20:05:26 -04:00
file:
2020-01-29 01:59:37 +01:00
- ~/factorio-server-manager-linux-${TRAVIS_TAG}.zip
- ~/factorio-server-manager-windows-${TRAVIS_TAG}.zip