-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathshippable.yml
More file actions
19 lines (19 loc) · 845 Bytes
/
shippable.yml
File metadata and controls
19 lines (19 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
build:
pre_ci:
- docker build -t test/nextcloud:latest .
- docker rm -f nc || true
- docker run -d --name=nc test/nextcloud:latest
ci:
- >
while ! docker logs --tail=5 nc |& grep 'Gratulations'; do
sleep 1 && ((c=c+1)) && ((c!=40))
done;
- docker logs nc
- docker exec --user apache nc occ --no-ansi maintenance:install --database mysql --database-name nextcloud_db --database-user nextcloud --database-pass changemepls --admin-user admin --admin-pass changemepls || true
- sleep 3
- docker exec --user apache nc occ --no-ansi status
- docker exec nc cat /var/log/apache2/error.log
- docker exec nc cat /var/log/apache2/ssl_error.log
- docker exec nc cat /nextcloud/data/nextcloud.log
- >
docker exec --user apache nc occ --no-ansi status |& grep "installed: true"