2022-09-14 22:50:02 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-10-13 16:17:00 +00:00
|
|
|
# Install dependencies
|
2022-09-14 22:50:02 +00:00
|
|
|
cd apps/memories
|
2023-10-13 16:17:00 +00:00
|
|
|
npm ci
|
|
|
|
npx playwright install
|
2022-09-14 22:50:02 +00:00
|
|
|
cp ../../vue.zip .
|
2022-10-29 22:59:20 +00:00
|
|
|
unzip -qq vue.zip
|
2022-09-14 22:50:02 +00:00
|
|
|
cd ../..
|
|
|
|
|
|
|
|
# Speed up loads
|
|
|
|
php occ app:disable comments
|
|
|
|
php occ app:disable contactsinteraction:
|
|
|
|
php occ app:disable dashboard
|
|
|
|
php occ app:disable weather_status
|
|
|
|
php occ app:disable user_status
|
|
|
|
php occ app:disable updatenotification
|
|
|
|
php occ app:disable systemtags
|
|
|
|
php occ app:disable files_sharing
|
|
|
|
|
2023-04-11 00:12:06 +00:00
|
|
|
# Setup
|
|
|
|
cd apps/memories
|
|
|
|
make exiftool
|
|
|
|
cd ../..
|
|
|
|
|
2022-09-14 22:50:02 +00:00
|
|
|
# Enable apps
|
|
|
|
php occ app:enable --force viewer
|
|
|
|
php occ app:enable --force memories
|
|
|
|
|
2023-04-11 00:12:06 +00:00
|
|
|
# Run repair steps
|
|
|
|
php occ maintenance:repair
|
|
|
|
|
2022-09-14 22:50:02 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
# Set debug mode and start dev server
|
|
|
|
php occ config:system:set --type bool --value true debug
|
|
|
|
php -S localhost:8080 &
|
|
|
|
|
|
|
|
# Get test photo files
|
|
|
|
cd data/admin/files
|
2023-02-06 01:20:40 +00:00
|
|
|
wget https://github.com/pulsejet/memories-assets/raw/main/Files.zip
|
2022-09-14 22:50:02 +00:00
|
|
|
unzip Files.zip
|
|
|
|
cd ../../..
|
|
|
|
|
|
|
|
# Index
|
|
|
|
php occ files:scan --all
|
|
|
|
php occ memories:index
|
|
|
|
|
2022-10-25 04:34:26 +00:00
|
|
|
# Set admin timeline path
|
2022-10-25 04:35:19 +00:00
|
|
|
php occ user:setting admin memories timelinePath "/Photos"
|
2022-10-25 04:34:26 +00:00
|
|
|
|
2022-09-14 22:50:02 +00:00
|
|
|
# Run e2e tests
|
|
|
|
cd apps/memories
|
|
|
|
npm run e2e
|
|
|
|
cd ../..
|