postal/.semaphore/tests.yml

23 lines
685 B
YAML
Raw Normal View History

2020-12-27 07:25:00 +01:00
version: v1.0
name: Pipeline 2
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
blocks:
2020-12-27 07:57:55 +01:00
- name: Test
2020-12-27 07:25:00 +01:00
task:
jobs:
2020-12-27 07:57:55 +01:00
- name: 'Alpine Test'
2020-12-27 07:25:00 +01:00
commands:
2020-12-27 07:42:01 +01:00
- checkout
2020-12-27 07:25:00 +01:00
- cd alpine
- docker-compose up -d
- 'for i in {1..20}; do [ $(docker inspect postal | jq ''.[].State.Health.Status'') == "healthy" ] && break || sleep 15; done'
2020-12-27 07:57:55 +01:00
- name: 'Ubuntu Test'
2020-12-27 07:30:34 +01:00
commands:
2020-12-27 07:42:01 +01:00
- checkout
2020-12-27 07:30:34 +01:00
- cd ubuntu
- docker-compose up -d
- 'for i in {1..20}; do [ $(docker inspect postal | jq ''.[].State.Health.Status'') == "healthy" ] && break || sleep 15; done'