File tree Expand file tree Collapse file tree 4 files changed +22
-20
lines changed Expand file tree Collapse file tree 4 files changed +22
-20
lines changed Original file line number Diff line number Diff line change 1
1
language : go
2
2
3
3
go :
4
- - 1.9 .x
4
+ - 1.11 .x
5
5
- 1.10.x
6
- - tip
7
6
8
7
go_import_path : gopkg.in/src-d/go-queue.v1
9
8
Original file line number Diff line number Diff line change @@ -3,12 +3,10 @@ PROJECT = go-queue
3
3
COMMANDS =
4
4
5
5
# Including ci Makefile
6
- MAKEFILE = Makefile.main
7
- CI_REPOSITORY = https://github.com/src-d/ci.git
8
- CI_FOLDER = .ci
9
-
6
+ CI_REPOSITORY ?= https://github.com/src-d/ci.git
7
+ CI_BRANCH ?= v1
8
+ CI_PATH ? = .ci
9
+ MAKEFILE := $( CI_PATH ) /Makefile.main
10
10
$(MAKEFILE ) :
11
- @git clone --quiet $(CI_REPOSITORY ) $(CI_FOLDER ) ; \
12
- cp $(CI_FOLDER ) /$(MAKEFILE ) . ;
13
-
11
+ git clone --quiet --depth 1 -b $(CI_BRANCH ) $(CI_REPOSITORY ) $(CI_PATH ) ;
14
12
-include $(MAKEFILE )
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package queue
3
3
import (
4
4
"context"
5
5
"fmt"
6
+ "os"
6
7
"os/exec"
7
8
"testing"
8
9
"time"
@@ -15,18 +16,20 @@ import (
15
16
"github.com/stretchr/testify/suite"
16
17
)
17
18
18
- // RabbitMQ tests require running docker.
19
+ // RabbitMQ reconnect tests require running docker.
19
20
// If `docker ps` command returned an error we skip some of the tests.
20
21
var (
21
22
dockerIsRunning bool
22
23
dockerCmdOutput string
24
+ inAppVeyor bool
23
25
)
24
26
25
27
func init () {
26
28
cmd := exec .Command ("docker" , "ps" )
27
29
b , err := cmd .CombinedOutput ()
28
30
29
31
dockerCmdOutput , dockerIsRunning = string (b ), (err == nil )
32
+ inAppVeyor = os .Getenv ("APPVEYOR" ) == "True"
30
33
}
31
34
32
35
func TestAMQPSuite (t * testing.T ) {
@@ -226,7 +229,7 @@ func TestAMQPRepublishBuried(t *testing.T) {
226
229
}
227
230
228
231
func TestReconnect (t * testing.T ) {
229
- if ! dockerIsRunning {
232
+ if inAppVeyor || ! dockerIsRunning {
230
233
t .Skip ()
231
234
}
232
235
Original file line number Diff line number Diff line change 1
1
version : " {build}"
2
+ image : Visual Studio 2017
2
3
platform : x64
3
4
4
5
clone_folder : c:\gopath\src\gopkg.in\src-d\go-queue.v1
5
6
6
7
environment :
7
8
GOPATH : c:\gopath
9
+ RABBITMQ_VERSION : any
8
10
9
- before_test :
10
- - set PATH=C:\Program Files\erl9.2\bin;%PATH%
11
- - choco install rabbitmq --ignoredependencies -y
12
- - ps : Start-Sleep -s 2
11
+ cache :
12
+ - C:\Users\appveyor\AppData\Local\Temp\chocolatey\ -> appveyor.yml
13
13
14
- build_script :
15
- - set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
16
- - go version
17
- - go get -v -t ./...
14
+ install :
15
+ - set PATH=%GOPATH%\bin;C:\go\bin;C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin;C:\msys64\usr\bin;%PATH%;"C:\Program Files\Git\mingw64\bin"
16
+ - mingw32-make ci-install
18
17
19
18
test_script :
20
- - go test -v ./...
19
+ - mingw32-make test
20
+
21
+ build : off
22
+ deploy : off
You can’t perform that action at this time.
0 commit comments