Skip to content

Commit

Permalink
Basic CircleCI 2.0 config (#518)
Browse files Browse the repository at this point in the history
Move testing to CircleCI 2.0
  • Loading branch information
otoolep committed Aug 30, 2018
1 parent 5368218 commit e67d717
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 24 deletions.
45 changes: 45 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,45 @@
version: 2
jobs:
test:
working_directory: ~/rqlite/src/github.com/rqlite/rqlite
docker:
- image: circleci/golang:1.10
steps:
- checkout
- run: go tool vet .
- run: go get -t -d -v ./...
- run: go test -timeout 60s -v ./...

race:
working_directory: ~/rqlite/src/github.com/rqlite/rqlite
docker:
- image: circleci/golang:1.10
steps:
- checkout
- run: go get -t -d -v ./...
- run:
command: go test -race -timeout 120s -v ./...
environment:
GORACE: "halt_on_error=1"

end_to_end:
working_directory: ~/rqlite/src/github.com/rqlite/rqlite
docker:
- image: circleci/golang:1.10
steps:
- checkout
- run: sudo apt-get install python-requests
- run: go get -t -d -v ./...
- run: (cd cmd/rqlited && go build)
- run:
command: system_test/full_system_test.py
environment:
RQLITED_PATH: /home/circleci/rqlite/src/github.com/rqlite/rqlite/cmd/rqlited/rqlited

workflows:
version: 2
build_and_test:
jobs:
- test
- race
- end_to_end
24 changes: 0 additions & 24 deletions circle.yml

This file was deleted.

4 changes: 4 additions & 0 deletions store/store_test.go
Expand Up @@ -485,8 +485,12 @@ func Test_SingleNodeSnapshotInMem(t *testing.T) {
t.Fatalf("failed to open snapshot file: %s", err.Error())
}

s.connsMu.Lock()
s.conns = nil
s.connsMu.Unlock()
s.metaMu.Lock()
s.meta = nil
s.metaMu.Unlock()
if err := s.Restore(snapFile); err != nil {
t.Fatalf("failed to restore snapshot from disk: %s", err.Error())
}
Expand Down

0 comments on commit e67d717

Please sign in to comment.