Skip to content
This repository was archived by the owner on Jan 31, 2024. It is now read-only.

Commit c8a9973

Browse files
author
Henry Wong
authored
[elastic] Fix deploy failure #Attempt 20. (#47)
1 parent 0a60455 commit c8a9973

File tree

2 files changed

+65
-35
lines changed

2 files changed

+65
-35
lines changed

.travis.yml

Lines changed: 43 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ language: go
55
go:
66
- "1.12.x"
77

8-
branches:
9-
only:
10-
- master
11-
128
install:
139
- git clone https://github.com/elastic/go-langserver $GOPATH/src/golang.org/x/tools
1410
- cd $GOPATH/src/golang.org/x/tools
@@ -26,25 +22,53 @@ before_install:
2622
matrix:
2723
fast_finish: true
2824
include:
29-
- name: Unit Tests & Package | Linux
25+
- name: Unit Tests & Package | Linux x64
3026
os: linux
3127
script:
3228
- go test ./internal/lsp
3329
- go build -o ../go-langserver-linux-amd64 $GOPATH/src/golang.org/x/tools/cmd/gopls
3430
- curl -o ../go1.12.7.linux-amd64.tar.gz https://dl.google.com/go/go1.12.7.linux-amd64.tar.gz
3531
- tar xzf ../go1.12.7.linux-amd64.tar.gz -C ../
36-
- rm ../go/bin/godoc & rm ../go/bin/gofmt & rm ../go/misc/benchcmp & rm ../go/misc/nacl/go_nacl* & rm -r ../go/pkg/tool/linux_amd64
3732
- mkdir build
3833
- tar -zcf ./build/go-langserver-linux-amd64.tar.gz ../go-langserver-linux-amd64 ../go
3934
deploy:
40-
provider: pages
35+
provider: releases
36+
skip_cleanup: true
37+
github_token: $GITHUB_TOKEN
38+
verbose: true
39+
file: $GOPATH/src/golang.org/x/tools/build/*
40+
file_glob: true
41+
name: $TRAVIS_TAG
42+
draft: false
43+
prerelease: false
44+
overwrite: true
45+
on:
46+
all_branches: true
47+
tags: true
48+
49+
- name: Unit Tests & Package | Linux x86
50+
os: linux
51+
script:
52+
- go test ./internal/lsp
53+
- go build -o ../go-langserver-linux-386 $GOPATH/src/golang.org/x/tools/cmd/gopls
54+
- curl -o ../go1.12.7.linux-386.tar.gz https://dl.google.com/go/go1.12.7.linux-386.tar.gz
55+
- tar xzf ../go1.12.7.linux-386.tar.gz -C ../
56+
- mkdir build
57+
- tar -zcf ./build/go-langserver-linux-386.tar.gz ../go-langserver-linux-386 ../go
58+
deploy:
59+
provider: releases
4160
skip_cleanup: true
4261
github_token: $GITHUB_TOKEN
4362
verbose: true
44-
local_dir: $GOPATH/src/golang.org/x/tools/build
45-
target_branch: linux_deploy
63+
file: $GOPATH/src/golang.org/x/tools/build/*
64+
file_glob: true
65+
name: $TRAVIS_TAG
66+
draft: false
67+
prerelease: false
68+
overwrite: true
4669
on:
47-
branch: master
70+
all_branches: true
71+
tags: true
4872

4973
- name: Unit Tests & Package | OSX
5074
os: osx
@@ -53,15 +77,19 @@ matrix:
5377
- go build -o ../go-langserver-darwin-amd64 $GOPATH/src/golang.org/x/tools/cmd/gopls
5478
- curl -o ../go1.12.7.darwin-amd64.tar.gz https://dl.google.com/go/go1.12.7.darwin-amd64.tar.gz
5579
- tar xzf ../go1.12.7.darwin-amd64.tar.gz -C ../
56-
- rm ../go/bin/godoc & rm ../go/bin/gofmt & rm ../go/misc/benchcmp & rm ../go/misc/nacl/go_nacl* & rm -r ../go/pkg/tool/darwin_amd64
5780
- mkdir build
5881
- tar -zcf ./build/go-langserver-darwin-amd64.tar.gz ../go-langserver-darwin-amd64 ../go
5982
deploy:
60-
provider: pages
83+
provider: releases
6184
skip_cleanup: true
6285
github_token: $GITHUB_TOKEN
6386
verbose: true
64-
local_dir: $GOPATH/src/golang.org/x/tools/build
65-
target_branch: darwin_deploy
87+
file: $GOPATH/src/golang.org/x/tools/build/*
88+
file_glob: true
89+
name: $TRAVIS_TAG
90+
draft: false
91+
prerelease: false
92+
overwrite: true
6693
on:
67-
branch: master
94+
all_branches: true
95+
tags: true

appveyor.yml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
version: 1.0.{build}
22
build:
33
verbosity: detailed
4-
54
image: Visual Studio 2017
6-
5+
stack: go 1.12.x
76
platform:
87
- x64
8+
- x86
9+
10+
notifications:
11+
- provider: GitHubPullRequest
12+
on_build_failure: true
913

1014
clone_folder: c:\gopath\src\golang.org\x\tools
1115

@@ -18,34 +22,32 @@ environment:
1822
github_email:
1923
secure: h0I1jhHT32GpepMnqGjwM+Fjyhf+WYtr5D1J+IkSdgg=
2024

21-
stack: go 1.12.x
2225

2326
build_script:
2427
- go get golang.org/x/sync/errgroup
2528
# TODO(henrywong) For now, there are problems about the windows test.
2629
# - go test ./internal/lsp -v
27-
- go build -o go-langserver-windows-amd64 c:\gopath\src\golang.org\x\tools\cmd\gopls
28-
- curl -o ../go1.12.7.windows-amd64.zip https://dl.google.com/go/go1.12.7.windows-amd64.zip
29-
- 7z x ../go1.12.7.windows-amd64.zip -o..
30+
- go build -o go-langserver-windows-%platform% c:\gopath\src\golang.org\x\tools\cmd\gopls
31+
- if %platform%==x64 curl -o ../go1.12.7.windows-%platform%.zip https://dl.google.com/go/go1.12.7.windows-amd64.zip
32+
- if %platform%==x86 curl -o ../go1.12.7.windows-%platform%.zip https://dl.google.com/go/go1.12.7.windows-386.zip
33+
- 7z x ../go1.12.7.windows-%platform%.zip -o..
3034
- mkdir go-langserver-windows
31-
- rm ../go/bin/godoc & rm ../go/bin/gofmt & rm ../go/misc/benchcmp & rm ../go/misc/nacl/go_nacl* & rm -r ../go/pkg/tool/windows_amd64
32-
- 7z a -r ./go-langserver-windows/go-langserver-windows-amd64.zip go-langserver-windows-amd64 ../go
33-
34-
branches:
35-
only:
36-
- master
35+
- 7z a -r ./go-langserver-windows/go-langserver-windows-%platform%.zip go-langserver-windows-%platform% ../go
3736

3837
artifacts:
39-
- path: go-langserver-windows
38+
- path: go-langserver-windows\*.zip
39+
name: go1.12.7.windows-%platform%.zip
4040

4141
deploy:
42-
- provider: Github
43-
release: go-langserver-windows-draft
44-
description: 'Release Draft'
42+
- provider: GitHub
43+
tag: $(APPVEYOR_REPO_TAG_NAME)
44+
release: $(APPVEYOR_REPO_TAG_NAME)
45+
description: $(APPVEYOR_REPO_TAG_NAME)
4546
auth_token:
46-
secure: $($env:github_access_token)
47-
draft: true
48-
artifact: go-langserver-windows-amd64.zip
47+
secure: h4ICNdm1D4g1klCMU6lQ7t92lwIrzo2HHzqc9MJpZdibgfNNFNGwywHWyBa0KPpL
48+
draft: false
49+
force_update: true
50+
prerelease: false
4951
on:
50-
branch: master
52+
APPVEYOR_REPO_TAG: true # deploy on tag push only
5153

0 commit comments

Comments
 (0)