I have some Postman collection that I want to run as integration test using drone. I am going to be using newman cli tool for Postman. How can I set up my rest API as a service in Drone?
My restful API is written in Go. I am already able to run unit test in drone. This is what my drone.yml looks like. I removed the publish and deploy pipelines for brevity.
- name: test
apk add -U git
echo -n "$SSH_KEY" > /root/.ssh/id_rsa
chmod 600 /root/.ssh/id_rsa
go generate ./...
go test ./...
go build ./...
Hi, got a question about drone 0.4
I’m running tests on my app and want to run some integration tests
I’m trying to use compose to rebuild another instance of my own container so that I’m able to ping it’s endpoints.
The question being, where to find some documentation regarding the syntax ?
http://readme.drone.io/0.4/usage/services/ but not very detailed
Few questions: can I build my image from a Dockerfile or docker-compose.yml ?
services  which are background containers that can be used for integration testing (mysql, redis, etc). You can also define services inline  in your pipeline steps to control order of operations and, such as your case, even use your own source code as a service.
Here is an example to demonstrate an inline service (replace with your Go program):
- name: build
- go build -o my-app
- name: app
- name: curl
- sleep 5
- curl http://app:8080
Thank you! I will try this out!