summaryrefslogtreecommitdiff
path: root/apps/ci/ci-dry-run.sh
blob: 335d6a53528882cf01fcb7d8a4fe0342e769071e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

set -e

CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

# Start mysql
sudo systemctl start mysql

source "$CURRENT_PATH/ci-gen-server-conf-files.sh" $1 "etc" "bin" "root"

(cd ./env/dist/bin/ && timeout 5m ./$APP_NAME -dry-run)

# Stop mysql
sudo systemctl stop mysql