Remove unused files in tests core

This commit is contained in:
Théophile Diot 2023-05-14 20:59:54 -04:00
parent e6bb9fb55f
commit b06210bdfb
No known key found for this signature in database
GPG Key ID: E752C80DB72BB014
4 changed files with 0 additions and 43 deletions

View File

@ -1 +0,0 @@
env

View File

@ -1,5 +0,0 @@
FROM docker
COPY . .
ENTRYPOINT [ "./tests.sh" ]

View File

@ -1,7 +0,0 @@
version: '3.5'
services:
tests:
build:
context: .
dockerfile: Dockerfile.dev

View File

@ -1,30 +0,0 @@
#!/bin/bash
echo "🚀 Starting core tests ..."
# Prepare environment
# TODO: uncomment this in production
# find . -type f -name 'docker-compose.*' -exec sed -i "s@bunkerity/bunkerweb:.*@bunkerweb-tests@" {} \;
# find . -type f -name 'docker-compose.*' -exec sed -i "s@bunkerity/bunkerweb-scheduler:.*@scheduler-tests@" {} \;
for dir in $(ls -d */)
do
if [ -f "$dir/test.sh" ] ; then
echo "Testing ${dir%?} ..."
cd $dir
./test.sh
if [ $? -ne 0 ] ; then
echo "❌ Core test ${dir%?} failed"
exit 1
fi
cd ..
echo " "
else
echo "⚠️ No tests in ${dir%?}, skipping."
fi
done
echo "🚀 Core tests are done ! ✅"