Commit 22987a80 authored by Dominik Hebeler's avatar Dominik Hebeler

testing does not work yet reverting for now

parent d8b656f8
stages:
- build
- test
- deploy
build metager1:
update(144.76.113.134):
tags:
- 144.76.113.134
only:
......@@ -15,9 +10,38 @@ build metager1:
- which php
- which sqlite3
script:
- sh build.sh
# 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
build metager2:
update(metager2):
tags:
- metager2
only:
......@@ -29,10 +53,36 @@ build metager2:
- which php
- which sqlite3
script:
- sh build.sh
# 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
build metager3:
stage: build
update(metager3.de):
tags:
- metager3
only:
......@@ -44,29 +94,4 @@ build metager3:
- which php
- which sqlite3
script:
- sh build.sh
test metager3:
stage: test
tags:
- metager3
only:
- development@open-source/MetaGer
script:
- cd ~/MetaGer_neu
- nohup php artisan serve --port 8005 >/dev/null 2>&1 &
- servePid=$!
- nohup ~/BrowserStackLocal --key gCyHqmJnNwLhp96LgiVG 2>&1 &
- browserstackPid=$!
- sleep 5
- ( trap 'kill $servePid && kill $browserstackPid' EXIT; sh test.sh )
deploy metager3:
stage: deploy
tags:
- metager3
only:
- development@open-source/MetaGer
script:
- cd ~/MetaGer_neu
- sh deploy.sh
\ No newline at end of file
- sh build.sh
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment