This repository was archived by the owner on Feb 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcircle.yml
More file actions
32 lines (32 loc) · 1.42 KB
/
circle.yml
File metadata and controls
32 lines (32 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
machine:
python:
version:
3.5.0
services:
- docker
dependencies:
override:
- cd /tmp && wget https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_x86_64.deb && sudo dpkg -i vagrant_1.8.1_x86_64.deb
database:
override:
- cd DB && wget https://github.com/bubenkoff/vagrant-docker-example/raw/master/Dockerfile
- cd DB && mv config.docker.rb config.rb && vagrant up --provider=docker
test:
pre:
- mkdir -p $HOME/.go_workspace/src/github.com/seadsystem/Backend
- sudo mount --bind $HOME/Backend/ $HOME/.go_workspace/src/github.com/seadsystem/Backend
override:
# Test that the SEAD plug landingzone port is open.
- cd DB && echo -e '' | nc $(./guestip.sh) 9000
- cd DB && vagrant ssh -c "echo -e '' | nc localhost 9000"
# Test that the eGauge landingzone port is open.
- cd DB && echo -e '' | nc $(./guestip.sh) 9002
- "cd DB && vagrant ssh -c \"echo -e 'POST / HTTP/1.1\nHost: localhost\n' | nc localhost 9002\""
# Test that the gRPC landingzone port is open.
- cd DB && echo -e '' | nc $(./guestip.sh) 50051
- cd DB && vagrant ssh -c "echo -e '' | nc localhost 50051"
# Test that the api port is open.
- cd DB && echo -e '' | nc $(./guestip.sh) 8080
- "cd DB && vagrant ssh -c \"echo -e 'GET / HTTP/1.1\nHost: localhost\n' | nc localhost 8080\""
# Run end-to-end tests.
- cd $HOME/.go_workspace/src/github.com/seadsystem/Backend/DB && go test -v