Skip to content
Snippets Groups Projects
launch_test.sh 638 B
Newer Older
poka's avatar
poka committed
testName=$1
poka's avatar
poka committed
[[ ! $testName ]] && testName='gecko_complete'

# Get local IP and set .env
ip_address=$(hostname -I | awk '{print $1}')
echo "ip_address=$ip_address" > .env
[[ $option == 'human' ]] && echo "isHumanReading=true" >> .env

## Start local Duniter node
cd integration_test/duniter
docker-compose down
rm -rf data/chains
docker-compose up -d
cd ../..

# Start integration test
poka's avatar
poka committed
flutter test integration_test/$testName.dart && echo '0' > /tmp/geckoTestResult || echo '1' > /tmp/geckoTestResult
# Reset .env
echo "ip_address=127.0.0.1" > .env

# Stop Duniter
cd integration_test/duniter
docker-compose down