drift/tool/misc_integration_test.sh

34 lines
700 B
Bash
Raw Normal View History

#!/usr/bin/env bash
EXIT_CODE=0
pushd extras/integration_tests
find . -type d -name .dart_tool -exec rm -rf {} \;
popd
pushd extras/integration_tests/vm
echo "Running integration tests with moor_ffi & VM"
2020-11-20 09:14:39 -08:00
dart pub upgrade
dart test || EXIT_CODE=$?
popd
pushd extras/integration_tests/postgres
echo "Running integration tests with Postgres"
dart pub upgrade
dart test || EXIT_CODE=$?
popd
2022-04-01 13:11:21 -07:00
pushd examples/with_built_value
echo "Running build runner in with_built_value"
2020-11-20 09:14:39 -08:00
dart pub upgrade
dart run build_runner build --delete-conflicting-outputs || EXIT_CODE=$?
popd
2022-04-01 13:11:21 -07:00
pushd examples/migrations_example
2022-01-19 10:55:19 -08:00
echo "Testing migrations in migrations_example"
dart pub upgrade
dart test
popd
exit $EXIT_CODE