Skip to content

Commit 46ae36a

Browse files
authored
Merge pull request #170 from knoxfighter/Fix_Travis
Fix travis ci not running on go >1.10 & not running on PR & other repos & not running tests
2 parents 9ab4fb4 + b92d63c commit 46ae36a

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

.travis.yml

+26-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,33 @@
1+
language: go
2+
go:
3+
- 1.11.x
4+
- 1.12.x
5+
- 1.13.x
6+
- 1.x
7+
8+
os:
9+
- linux
10+
- windows
11+
12+
env:
13+
- GO111MODULE=on
14+
15+
script:
16+
- cd src/
17+
- go test -v
18+
119
jobs:
220
include:
321
- stage: deploy
422
go: 1.x
5-
language: minimal
23+
os: linux
624
before_install:
7-
- docker build -f "docker/Dockerfile-build" -t factorio-server-manager docker
25+
- curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
26+
- sudo apt-get install -y nodejs
827
script:
9-
- mkdir /home/travis/build/mroote/build
10-
- docker run -t -e FAC_BRANCH=$TRAVIS_BRANCH -v /home/travis/build/mroote/build:/build factorio-server-manager
11-
- mv /home/travis/build/mroote/build/factorio-server-manager-linux.zip /home/travis/factorio-server-manager-linux-${TRAVIS_TAG}.zip
12-
- mv /home/travis/build/mroote/build/factorio-server-manager-windows.zip /home/travis/factorio-server-manager-windows-${TRAVIS_TAG}.zip
28+
- make gen_release
29+
- mv build/factorio-server-manager-linux.zip ~/factorio-server-manager-linux-${TRAVIS_TAG}.zip
30+
- mv build/factorio-server-manager-windows.zip ~/factorio-server-manager-windows-${TRAVIS_TAG}.zip
1331
deploy:
1432
provider: releases
1533
api_key: "${GITHUB_TOKEN}"
@@ -18,5 +36,5 @@ jobs:
1836
on:
1937
tags: true
2038
file:
21-
- /home/travis/factorio-server-manager-linux-${TRAVIS_TAG}.zip
22-
- /home/travis/factorio-server-manager-windows-${TRAVIS_TAG}.zip
39+
- ~/factorio-server-manager-linux-${TRAVIS_TAG}.zip
40+
- ~/factorio-server-manager-windows-${TRAVIS_TAG}.zip

0 commit comments

Comments
 (0)