Skip to content

Commit

Permalink
Added automated smoketest
Browse files Browse the repository at this point in the history
  • Loading branch information
TrafeX committed Nov 5, 2019
1 parent 6084df9 commit 775a629
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: '3.5'
services:
app:
build: .
sut:
image: alpine:3.10
depends_on:
- app
command: /tmp/run_tests.sh
volumes:
- "./run_tests.sh:/tmp/run_tests.sh:ro"
3 changes: 3 additions & 0 deletions run_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh
apk --no-cache add curl
curl --silent --fail http://app:8080 | grep 'PHP 7.3'

0 comments on commit 775a629

Please sign in to comment.