Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MetaGer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
MetaGer
Commits
3c7e7b92
Commit
3c7e7b92
authored
5 years ago
by
Dominik Hebeler
Browse files
Options
Downloads
Patches
Plain Diff
testing staged build process
parent
b0d58f7e
No related branches found
No related tags found
1 merge request
!1433
Development
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+32
-62
32 additions, 62 deletions
.gitlab-ci.yml
build.sh
+1
-9
1 addition, 9 deletions
build.sh
deploy.sh
+12
-0
12 additions, 0 deletions
deploy.sh
test.sh
+15
-0
15 additions, 0 deletions
test.sh
with
60 additions
and
71 deletions
.gitlab-ci.yml
+
32
−
62
View file @
3c7e7b92
update(144.76.113.134)
:
stages
:
-
build
-
test
-
deploy
build metager1
:
tags
:
-
144.76.113.134
only
:
...
...
@@ -10,38 +15,9 @@ update(144.76.113.134):
-
which php
-
which sqlite3
script
:
# Pfad zum neu geklonten Repo
-
path=`pwd`
-
cd ~/
-
if [ -d MetaGer_neu ]; then rm -rf MetaGer_neu;fi
-
git clone "$path" MetaGer_neu
-
cd MetaGer_neu
-
composer install
-
scp -P 63824 metager@metager3.de:~/.env .
-
scp -P 63824 metager@metager3.de:~/sumas.json config/
-
scp -P 63824 metager@metager3.de:~/sumasEn.json config/
-
scp -P 63824 metager@metager3.de:~/blacklistUrl.txt config/
-
scp -P 63824 metager@metager3.de:~/blacklistDomains.txt config/
-
scp -P 63824 metager@metager3.de:~/adBlacklistUrl.txt config/
-
scp -P 63824 metager@metager3.de:~/adBlacklistDomains.txt config/
-
touch storage/logs/laravel.log
-
touch storage/logs/worker.log
-
touch database/metager.sqlite
-
chmod 777 config/sumas.json config/sumas.json database/metager.sqlite
-
chmod -R 777 storage
-
chmod -R 777 bootstrap/cache
-
npm install
-
npm run production
-
php artisan migrate --force
-
php artisan requests:gather
-
if [ -f ~/MetaGer/artisan ]; then php ~/MetaGer/artisan down;fi
-
cd ~/
-
while [ -d ~/MetaGer ]; do rm -rf ~/MetaGer;done
-
mv MetaGer_neu MetaGer
-
sudo pkill --signal SIGHUP supervisord
-
php ~/MetaGer/artisan up
-
sh build.sh
update(
metager2
)
:
build
metager2
:
tags
:
-
metager2
only
:
...
...
@@ -53,36 +29,10 @@ update(metager2):
-
which php
-
which sqlite3
script
:
# Pfad zum neu geklonten Repo
-
path=`pwd`
-
cd ~/
-
if [ -d MetaGer_neu ]; then rm -rf MetaGer_neu;fi
-
git clone "$path" MetaGer_neu
-
cd MetaGer_neu
-
composer install
-
scp -P 63824 metager@metager3.de:~/.env .
-
scp -P 63824 metager@metager3.de:~/sumas.json config/
-
scp -P 63824 metager@metager3.de:~/sumasEn.json config/
-
scp -P 63824 metager@metager3.de:~/blacklistUrl.txt config/
-
scp -P 63824 metager@metager3.de:~/blacklistDomains.txt config/
-
touch storage/logs/laravel.log
-
touch storage/logs/worker.log
-
touch database/metager.sqlite
-
chmod 777 config/sumas.json config/sumas.json database/metager.sqlite
-
chmod -R 777 storage
-
chmod -R 777 bootstrap/cache
-
npm install
-
npm run production
-
php artisan migrate --force
-
php artisan requests:gather
-
if [ -f ~/MetaGer/artisan ]; then php ~/MetaGer/artisan down;fi
-
cd ~/
-
while [ -d ~/MetaGer ]; do rm -rf ~/MetaGer;done
-
mv MetaGer_neu MetaGer
-
sudo pkill --signal SIGHUP supervisord
-
php ~/MetaGer/artisan up
-
sh build.sh
update(metager3.de)
:
build metager3
:
stage
:
build
tags
:
-
metager3
only
:
...
...
@@ -94,4 +44,24 @@ update(metager3.de):
-
which php
-
which sqlite3
script
:
-
sh build.sh
\ No newline at end of file
-
sh build.sh
test metager3
:
stage
:
test
tags
:
-
metager3
only
:
-development@open-source/MetaGer
script
:
-
cd ~/MetaGer_neu
-
sh test.sh
deploy metager3
:
stage
:
deploy
tags
:
-
metager3
only
:
-
development@open-source/MetaGer
script
:
-
cd ~/MetaGer_neu
-
sh test.sh
\ No newline at end of file
This diff is collapsed.
Click to expand it.
build.sh
+
1
−
9
View file @
3c7e7b92
...
...
@@ -6,7 +6,6 @@ path=`pwd`
cd
~/
if
[
-d
MetaGer_neu
]
;
then
rm
-rf
MetaGer_neu
;
fi
git clone
"
$path
"
MetaGer_neu
cd
lkaklgn
cd
MetaGer_neu
composer
install
scp
-P
63824 metager@metager3.de:~/.env
.
...
...
@@ -24,11 +23,4 @@ chmod -R 777 storage
chmod
-R
777 bootstrap/cache
npm
install
npm run production
php artisan migrate
--force
php artisan requests:gather
if
[
-f
~/MetaGer/artisan
]
;
then
php ~/MetaGer/artisan down
;
fi
cd
~/
while
[
-d
~/MetaGer
]
;
do
rm
-rf
~/MetaGer
;
done
mv
MetaGer_neu MetaGer
sudo
pkill
--signal
SIGHUP supervisord
php ~/MetaGer/artisan up
\ No newline at end of file
php artisan migrate
--force
\ No newline at end of file
This diff is collapsed.
Click to expand it.
deploy.sh
0 → 100644
+
12
−
0
View file @
3c7e7b92
#!/bin/bash
set
-e
cd
~/MetaGer_neu
php artisan requests:gather
if
[
-f
~/MetaGer/artisan
]
;
then
php ~/MetaGer/artisan down
;
fi
cd
~/
while
[
-d
~/MetaGer
]
;
do
rm
-rf
~/MetaGer
;
done
mv
MetaGer_neu MetaGer
sudo
pkill
--signal
SIGHUP supervisord
php ~/MetaGer/artisan up
\ No newline at end of file
This diff is collapsed.
Click to expand it.
test.sh
0 → 100644
+
15
−
0
View file @
3c7e7b92
#!/bin/bash
set
-e
cd
~/MetaGer_neu
# Start Webserver
php artisan serve
>
/dev/null 2>&1 &
servePid
=
$!
# Start the Browserstack Proxy
~/BrowserStackLocal
--key
gCyHqmJnNwLhp96LgiVG 2>&1 &
browserstackPid
=
$!
./vendor/bin/phpunit
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment