forked from Dolibarr/dolibarr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/Dolibarr/dolibarr into d…
…ev_hook_manifest
- Loading branch information
Showing
584 changed files
with
2,394 additions
and
2,070 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ jobs: | |
- stage: PHP min and max | ||
if: type = push | ||
php: '7.1' | ||
env: | ||
env: | ||
- DB=postgresql | ||
- TRAVIS_PHP_VERSION=7.1 | ||
- stage: PHP min and max | ||
|
@@ -49,7 +49,7 @@ jobs: | |
- stage: PHP 8.3 | ||
if: type = push AND branch = develop | ||
php: '8.3' | ||
env: | ||
env: | ||
- DB=mysql | ||
- TRAVIS_PHP_VERSION=8.3 | ||
|
||
|
@@ -89,7 +89,7 @@ before_install: | |
if [ "$TRAVIS_PHP_VERSION" = '8.3' ]; then | ||
sudo apt install unzip apache2 php8.3 php8.3-cli php8.3-curl php8.3-mysql php8.3-pgsql php8.3-gd php8.3-imap php8.3-intl php8.3-ldap php8.3-xml php8.3-mbstring php8.3-xml php8.3-zip libapache2-mod-php8.3 | ||
fi | ||
- | | ||
echo Install pgsql if run is for pgsql | ||
if [ "$DB" = 'postgresql' ]; then | ||
|
@@ -116,15 +116,15 @@ install: | |
- | | ||
if [ "$TRAVIS_PHP_VERSION" = '7.1' ]; then | ||
sudo update-alternatives --set php /usr/bin/php7.1 | ||
fi | ||
fi | ||
if [ "$TRAVIS_PHP_VERSION" = '8.1' ]; then | ||
sudo update-alternatives --set php /usr/bin/php8.1 | ||
fi | ||
fi | ||
if [ "$TRAVIS_PHP_VERSION" = '8.2' ]; then | ||
sudo update-alternatives --set php /usr/bin/php8.2 | ||
fi | ||
fi | ||
php -i | head - | ||
- | | ||
echo "Updating Composer config" | ||
curl -sS https://getcomposer.org/installer -o /tmp/composer-setup.php | ||
|
@@ -133,7 +133,7 @@ install: | |
php -r "if (hash_file('SHA384', '/tmp/composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" | ||
sudo php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer | ||
sudo chmod -R a+rwx /usr/local/bin/composer | ||
#sudo apt install composer | ||
composer -V | ||
composer -n config -g vendor-dir htdocs/includes | ||
|
@@ -229,7 +229,7 @@ before_script: | |
#sudo mysqld_safe --skip-grant-tables --socket=/tmp/aaa | ||
sudo mysqld_safe --skip-grant-tables --socket=/tmp/aaa & | ||
sleep 3 | ||
sudo ps fauxww | ||
sudo ps fauxww | ||
echo "MySQL set root password" | ||
sudo mysql -u root -h 127.0.0.1 -e "FLUSH PRIVILEGES; CREATE DATABASE IF NOT EXISTS travis CHARACTER SET = 'utf8'; ALTER USER 'root'@'localhost' IDENTIFIED BY 'password'; CREATE USER 'root'@'127.0.0.1' IDENTIFIED BY 'password'; CREATE USER 'travis'@'127.0.0.1' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON travis.* TO [email protected]; GRANT ALL PRIVILEGES ON travis.* TO [email protected]; FLUSH PRIVILEGES;" | ||
echo "MySQL grant" | ||
|
@@ -238,15 +238,15 @@ before_script: | |
sudo mysql -u root -h 127.0.0.1 -ppassword -e 'use mysql; select * from user;' | ||
echo "List pid file" | ||
sudo mysql -u root -h 127.0.0.1 -ppassword -e "show variables like '%pid%';" | ||
#sudo kill `cat /var/lib/mysqld/mysqld.pid` | ||
#sudo systemctl start mariadb | ||
echo "MySQL grant" | ||
sudo mysql -u root -h 127.0.0.1 -ppassword -e 'GRANT ALL PRIVILEGES ON travis.* TO [email protected];' | ||
echo "MySQL flush" | ||
sudo mysql -u root -h 127.0.0.1 -ppassword -e 'FLUSH PRIVILEGES;' | ||
echo "MySQL load sql" | ||
sudo mysql -u root -h 127.0.0.1 -ppassword -D travis < dev/initdemo/mysqldump_dolibarr_3.5.0.sql | ||
fi | ||
|
@@ -415,12 +415,12 @@ script: | |
echo '$'force_install_main_data_root=\'$TRAVIS_BUILD_DIR/htdocs\'';' >> $INSTALL_FORCED_FILE | ||
#cat $INSTALL_FORCED_FILE | ||
echo | ||
- | | ||
echo "Upgrading Dolibarr" | ||
# Ensure we catch errors with -e. Set this to +e if you want to go to the end to see log files. | ||
# Note: We keep +e because with pgsql, one of upgrade process fails even if migration seems ok, so | ||
# I disable stop on error to be able to continue. | ||
# I disable stop on error to be able to continue. | ||
set +e | ||
cd htdocs/install | ||
php upgrade.php 3.5.0 3.6.0 ignoredbversion > $TRAVIS_BUILD_DIR/upgrade350360.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ | |
# | ||
# see: dh_installdeb(1) | ||
|
||
# shellcheck disable=1091,2006,2034,2086,2089,2090 | ||
|
||
#set -e | ||
set +e | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#!/bin/sh | ||
|
||
# shellcheck disable=2034,2086,2103,2164 | ||
|
||
tmpdir=$(mktemp -d) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
FROM mariadb:latest | ||
# Enable comented out UTF8 charset/collation options | ||
# Enable commented out UTF8 charset/collation options | ||
RUN sed '/utf8/ s/^#//' /etc/mysql/mariadb.cnf >/tmp/t && mv /tmp/t /etc/mysql/mariadb.cnf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.