Skip to content

Commit 775a629

Browse files
committed
Added automated smoketest
1 parent 6084df9 commit 775a629

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

docker-compose.test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: '3.5'
2+
services:
3+
app:
4+
build: .
5+
sut:
6+
image: alpine:3.10
7+
depends_on:
8+
- app
9+
command: /tmp/run_tests.sh
10+
volumes:
11+
- "./run_tests.sh:/tmp/run_tests.sh:ro"

run_tests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env sh
2+
apk --no-cache add curl
3+
curl --silent --fail http://app:8080 | grep 'PHP 7.3'

0 commit comments

Comments
 (0)