author | ymh <ymh.work@gmail.com> |
Tue, 18 Oct 2016 14:38:56 +0200 | |
changeset 353 | bf1bc6b08c46 |
parent 346 | 4cd0f8c936ed |
child 383 | 82a3db4b1d39 |
permissions | -rwxr-xr-x |
28 | 1 |
#!/usr/bin/env bash |
2 |
||
322
084aae09edf4
correction on importRDF documents + evolution theme controller
ymh <ymh.work@gmail.com>
parents:
28
diff
changeset
|
3 |
pushd /vagrant/root/var/www/corpusdelaparole/corpus-back/ |
28 | 4 |
echo "---> Launching composer" |
5 |
php composer.phar install --ignore-platform-reqs -o |
|
346
4cd0f8c936ed
upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents:
322
diff
changeset
|
6 |
echo "---> Optimizing config" |
4cd0f8c936ed
upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents:
322
diff
changeset
|
7 |
php artisan config:cache |
4cd0f8c936ed
upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents:
322
diff
changeset
|
8 |
echo "---> Optimizing route" |
4cd0f8c936ed
upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents:
322
diff
changeset
|
9 |
php artisan route:cache |
4cd0f8c936ed
upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents:
322
diff
changeset
|
10 |
echo "---> Clear views" |
4cd0f8c936ed
upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents:
322
diff
changeset
|
11 |
php artisan view:clear |
28 | 12 |
echo "---> Composer done" |
13 |
popd |
|
14 |
||
346
4cd0f8c936ed
upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents:
322
diff
changeset
|
15 |
mkdir -p /vagrant/dist |
4cd0f8c936ed
upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents:
322
diff
changeset
|
16 |
pushd /vagrant/dist |
28 | 17 |
echo "---> Launching packaging" |
18 |
rm -f *.rpm |
|
19 |
#TODO: read version from corpus |
|
346
4cd0f8c936ed
upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents:
322
diff
changeset
|
20 |
version=$(grep -oP "\'version\'\s*=>\s*\'\K[\.0-9]+(?=\')" /vagrant/root/var/www/corpusdelaparole/corpus-back/config/version.php) |
28 | 21 |
version=${version:-0.0.0} |
22 |
||
23 |
fpm \ |
|
24 |
--verbose \ |
|
25 |
-a all \ |
|
26 |
-s dir \ |
|
27 |
-t rpm \ |
|
28 |
-C /vagrant/root \ |
|
29 |
-d httpd \ |
|
30 |
-d php56 \ |
|
31 |
-d mariadb-server \ |
|
353
bf1bc6b08c46
correct provisioning to install drush and correct config files + module definition for menu access problem
ymh <ymh.work@gmail.com>
parents:
346
diff
changeset
|
32 |
-d mariadb \ |
28 | 33 |
--name corpusdelaparole \ |
34 |
--version "$version" \ |
|
35 |
--iteration $(date +%s) \ |
|
36 |
--description "Corpus de la parole source rpm" \ |
|
37 |
--url "http://corpusdelaparole.huma-num.fr" \ |
|
38 |
--rpm-user apache \ |
|
39 |
--rpm-group apache \ |
|
40 |
--directories /var/www/corpusdelaparole \ |
|
41 |
--after-install /vagrant/post_install.sh \ |
|
42 |
--after-remove /vagrant/post_uninstall.sh \ |
|
43 |
--after-upgrade /vagrant/post_upgrade.sh \ |
|
353
bf1bc6b08c46
correct provisioning to install drush and correct config files + module definition for menu access problem
ymh <ymh.work@gmail.com>
parents:
346
diff
changeset
|
44 |
--before-upgrade /vagrant/pre_upgrade.sh \ |
28 | 45 |
. |
346
4cd0f8c936ed
upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents:
322
diff
changeset
|
46 |
|
4cd0f8c936ed
upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents:
322
diff
changeset
|
47 |
echo "---> Packaging done" |
28 | 48 |
popd |