-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun-tests.sh
executable file
·78 lines (71 loc) · 1.9 KB
/
run-tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# IGNORE THIS FILE
#
# Older script kept because sometime, I want to run things
# manually, I simply copy/paste those stuff.
#
exit;
echo "Running tests with MySQL 8"
DBAL_DRIVER=pdo_mysql \
DBAL_DBNAME=test_db \
DBAL_HOST=127.0.0.1 \
DBAL_PASSWORD=password \
DBAL_PORT=9502 \
DBAL_ROOT_PASSWORD="password" \
DBAL_ROOT_USER="root" \
DBAL_USER=root \
vendor/bin/phpunit
echo "Running tests with MariaDB 11"
DBAL_DRIVER=pdo_mysql \
DBAL_DBNAME=test_db \
DBAL_HOST=127.0.0.1 \
DBAL_PASSWORD=password \
DBAL_PORT=9503 \
DBAL_ROOT_PASSWORD="password" \
DBAL_ROOT_USER="root" \
DBAL_USER=root \
vendor/bin/phpunit
echo "Running tests with PostgreSQL 10"
DBAL_DRIVER=pdo_pgsql \
DBAL_DBNAME=test_db \
DBAL_HOST=127.0.0.1 \
DBAL_PASSWORD=password \
DBAL_PORT=9504 \
DBAL_ROOT_PASSWORD="password" \
DBAL_ROOT_USER="postgres" \
DBAL_USER=postgres \
vendor/bin/phpunit
echo "Running tests with PostgreSQL 16"
DBAL_DRIVER=pdo_pgsql \
DBAL_DBNAME=test_db \
DBAL_HOST=127.0.0.1 \
DBAL_PASSWORD=password \
DBAL_PORT=9505 \
DBAL_ROOT_PASSWORD="password" \
DBAL_ROOT_USER="postgres" \
DBAL_USER=postgres \
vendor/bin/phpunit
# echo "Running tests with Oracle 23"
# DBAL_DRIVER=pdo_oci \
# DBAL_DBNAME=test_db \
# DBAL_HOST=127.0.0.1 \
# DBAL_PASSWORD=password \
# DBAL_PORT=9606 \
# DBAL_ROOT_PASSWORD="password" \
# DBAL_ROOT_USER="oracle" \
# DBAL_USER=oracle \
# vendor/bin/phpunit
echo "Running tests with SQLServer 2019"
DBAL_DRIVER=pdo_sqlsrv \
DBAL_DBNAME=test_db \
DBAL_HOST=127.0.0.1 \
DBAL_PASSWORD=P@ssword123 \
DBAL_PORT=9506 \
DBAL_ROOT_PASSWORD="P@ssword123" \
DBAL_ROOT_USER="sa" \
DBAL_USER=sa \
vendor/bin/phpunit
echo "Running tests with SQLite"
DBAL_DRIVER=pdo_sqlite \
DBAL_DBNAME=test_db \
DBAL_HOST=127.0.0.1 \
vendor/bin/phpunit