Skip to content
This repository was archived by the owner on Mar 30, 2023. It is now read-only.

Commit 55b7cf7

Browse files
authored
Merge pull request #24 from RSE-Cambridge/dac-ansible
Dac ansible refresh step 1
2 parents 71a48a2 + 0f108ec commit 55b7cf7

27 files changed

Lines changed: 156 additions & 736 deletions

.idea/encodings.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@ language: go
33
services:
44
- docker
55
script:
6-
- make build
7-
- test -f bin/amd64/fakewarp
8-
- make container
9-
- make test
6+
- make
7+
- make tar

Dockerfile.in

Lines changed: 0 additions & 22 deletions
This file was deleted.

Makefile

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,35 +14,37 @@
1414
all: deps buildlocal test format
1515

1616
buildlocal:
17-
mkdir -p `pwd`/bin
18-
GOBIN=`pwd`/bin go install -v ./...
19-
ls -l `pwd`/bin
17+
mkdir -p `pwd`/bin
18+
GOBIN=`pwd`/bin go install -v ./...
19+
ls -l `pwd`/bin
2020

2121
format:
22-
go fmt ./...
22+
go fmt ./...
2323

2424
test:
25-
go test -cover -race ./...
26-
go vet ./...
25+
./build/rebuild_mocks.sh
26+
go test -cover -race ./...
27+
go vet ./...
2728

2829
test-func:
29-
./build/func_test.sh
30+
./build/func_test.sh
3031

3132
clean:
32-
go clean
33-
rm -rf `pwd`/bin
34-
rm -rf /tmp/etcd-download
33+
go clean
34+
rm -rf `pwd`/bin
35+
rm -rf /tmp/etcd-download
3536

3637
deps:
37-
dep ensure
38+
dep ensure
3839

3940
tar: clean buildlocal
40-
tar -cvzf ./bin/data-acc-`git describe --tag`.tgz ./bin/dacd ./bin/dacctl ./fs-ansible ./tools/*.sh
41+
tar -cvzf ./bin/data-acc-`git describe --tag`.tgz ./bin/dacd ./bin/dacctl ./fs-ansible ./tools/*.sh
42+
sha256sum ./bin/data-acc-`git describe --tag`.tgz > ./bin/data-acc-`git describe --tag`.tgz.sha256
4143

4244
dockercmd=docker run --rm -it -v ~/go:/go -w /go/src/github.com/RSE-Cambridge/data-acc golang:1.11
4345

4446
docker:
45-
$(dockercmd) go install -v ./...
47+
$(dockercmd) go install -v ./...
4648

4749
installdep:
4850
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh

Makefile.docker

Lines changed: 0 additions & 172 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ The following tests are currently expected to work:
4747
The following tests are currently a work in progress:
4848

4949
* full end to end test deployment using ansible to install systemd unit files, with SSL certs for etcd, aimed at testing the Ansible inside virtual machines (./dac-ansible)
50-
* older more broken end to end deployment using docker-compose (./ansible)
5150
* functional tests for etcd (make test-func runs dac-func-test golang binary)
5251

5352
### Packages
@@ -94,6 +93,9 @@ https://golang.org/doc/install#testing
9493
dep 0.5.0 is used to manage dependencies. To install dep please read:
9594
https://golang.github.io/dep/docs/installation.html#binary-installation
9695

96+
gomock v1.1.1 is used to generate mocks. The version is fixed to stop
97+
conflicts with etcd 3.3.x.
98+
9799
To build all the golang code and run unit tests locally:
98100
```
99101
cd ~/go/src/github.com/RSE-Cambridge/data-acc

ansible/README

Lines changed: 0 additions & 17 deletions
This file was deleted.

ansible/dac-worker/docker-compose.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

ansible/demo.sh

Lines changed: 0 additions & 75 deletions
This file was deleted.

0 commit comments

Comments
 (0)