update travis.yml

This commit is contained in:
刘河 2019-12-04 03:12:03 +08:00
parent 5d2b3a53a0
commit 3e26af308c
1 changed files with 1 additions and 8 deletions

View File

@ -9,13 +9,8 @@ script:
- go test -v ./cmd/nps/
os:
- linux
- windows
jobs:
allow_failures:
- os: windows
before_deploy:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then chmod +x ./build.sh && ./build.sh; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then go build -buildmode=c-shared -o npc_sdk.dll cmd\npc\sdk.go; fi
- chmod +x ./build.sh && ./build.sh
deploy:
provider: releases
@ -56,8 +51,6 @@ deploy:
- win_amd64_client.tar.gz
- win_amd64_server.tar.gz
- npc_$VERSION.spk
- npc_sdk.dll
- npc_sdk.h
on:
tags: true
all_branches: true