update travis.yml

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