-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcircle.yml
50 lines (43 loc) · 1.42 KB
/
circle.yml
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
version: 2
jobs:
build:
working_directory: /var/www
docker:
- image: retreatguru/connect-plugin:php81
environment:
WORDPRESS_DB_HOST: 127.0.0.1
WORDPRESS_DB_NAME: rgconnect
WORDPRESS_DB_USER: wp
WORDPRESS_DB_PASSWORD: wp
- image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: rgconnect
MYSQL_USER: wp
MYSQL_PASSWORD: wp
steps:
- run:
name: Pre-checkout
command: |
rm -rf /var/www/html
echo '127.0.0.1 rgconnect.test' >> /etc/hosts
- checkout
- run:
name: Build
command: |
cp .env.default .env
composer install -d programs-remote-tests/
chown noroot:www-data /var/www/html
su noroot -c '/usr/local/bin/wait-db.sh'
su noroot -c 'cd /var/www/html && ../docker/bin/configure-wordpress.sh'
su noroot -c 'cd /var/www/html && ../docker/bin/configure-options.sh'
- run:
name: Start web server
command: service apache2 start
- run:
name: Test
command: |
cd /var/www/programs-remote-tests
vendor/bin/codecept run acceptance
- store_artifacts:
path: /var/www/programs-remote-tests/tests/_output