26 lines
354 B
Bash
26 lines
354 B
Bash
#!/usr/bin/env bash
|
|
|
|
build_ui() {
|
|
cd ui/ || exit 2
|
|
npm run build
|
|
cd ..
|
|
}
|
|
|
|
test_unit() {
|
|
pwd
|
|
cd api/ || exit 2
|
|
./vendor/bin/codecept run unit
|
|
cd ..
|
|
}
|
|
|
|
test_api() {
|
|
cd api/ || exit 2
|
|
./vendor/bin/codecept run api
|
|
cd ..
|
|
}
|
|
|
|
composer_run() {
|
|
docker-compose up -d
|
|
}
|
|
|
|
build_ui && test_unit && composer_run && test_api |