Skip to content

Commit

Permalink
test(travis): check if Dockerfile sources are present at fixed locations
Browse files Browse the repository at this point in the history
  • Loading branch information
Naramsim committed Aug 20, 2019
1 parent 67a2144 commit fb138dc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .travis/check_dockerfile_location.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

SERVICES='frontend-apps frontend-bugs patch-lib-analyzer rest-backend rest-lib-utils'
ERROR=false
FAILED=""

for service in $SERVICES ; do
if ! [ -f "./docker/$service/Dockerfile" ]; then
ERROR=true
FAILED="$FAILED$service "
fi
done

if [ "$ERROR" = "true" ]; then
echo "[-] The following Dockerfiles are not present anymore: docker/$FAILED/Dockerfile"
exit 1
fi

0 comments on commit fb138dc

Please sign in to comment.