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.
- Loading branch information
Showing
10 changed files
with
1,391 additions
and
1,352 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,6 @@ jobs: | |
|
||
|
||
# Note (not tested, from https://github.com/orgs/community/discussions/38361) | ||
# To cancel jobs if one failes, the following action may help | ||
# To cancel jobs if one fails, the following action may help | ||
# - if: "failure()" | ||
# uses: "andymckay/[email protected]" |
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,13 +37,13 @@ jobs: | |
- stage: PHP 7.0-8.1 | ||
if: type = push | ||
php: '7.1' | ||
env: | ||
env: | ||
- DB=postgresql | ||
- TRAVIS_PHP_VERSION=7.1 | ||
- stage: PHP 7.0-8.1 | ||
if: type = pull_request OR type = push | ||
php: '8.1' | ||
env: | ||
env: | ||
- DB=mysql | ||
- TRAVIS_PHP_VERSION=8.1 | ||
#- stage: PHP Dev | ||
|
@@ -108,12 +108,12 @@ 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 | ||
php -i | head - | ||
- | | ||
echo "Updating Composer config" | ||
curl -sS https://getcomposer.org/installer -o /tmp/composer-setup.php | ||
|
@@ -216,7 +216,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" | ||
|
@@ -225,15 +225,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 | ||
|
@@ -371,12 +371,12 @@ script: | |
echo '$'force_install_mainforcehttps=false';' >> $INSTALL_FORCED_FILE | ||
echo '$'force_install_main_data_root=\'$TRAVIS_BUILD_DIR/htdocs\'';' >> $INSTALL_FORCED_FILE | ||
#cat $INSTALL_FORCED_FILE | ||
- | | ||
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 | ||
|
@@ -444,7 +444,7 @@ script: | |
- | | ||
echo Result of migration scripts | ||
ls -alrt $TRAVIS_BUILD_DIR/ | ||
echo Show content of last file | ||
cat $TRAVIS_BUILD_DIR/"$(ls -rt $TRAVIS_BUILD_DIR/ | tail -n1)" | ||
|
@@ -494,18 +494,18 @@ after_failure: | |
# Show upgrade log files | ||
#for ficlog in `ls $TRAVIS_BUILD_DIR/*.log` | ||
#do | ||
#echo "Debugging informations for file $ficlog" | ||
#echo "Debugging information for file $ficlog" | ||
#cat $ficlog | ||
#done | ||
# Show Apache log file | ||
echo "Debugging informations for file apache error.log" | ||
echo "Debugging information for file apache error.log" | ||
sudo tail -n 200 /var/log/apache2/travis_error_log | ||
if [ "$DEBUG" = true ]; then | ||
# Dolibarr log file | ||
echo "Debugging informations for file dolibarr.log (latest 50 lines)" | ||
echo "Debugging information for file dolibarr.log (latest 50 lines)" | ||
tail -n 200 $TRAVIS_BUILD_DIR/documents/dolibarr.log | ||
# Database log file | ||
echo "Debugging informations for file mysql error.log" | ||
echo "Debugging information for file mysql error.log" | ||
sudo tail -n 200 /var/log/mysql/error.log | ||
# TODO: PostgreSQL log file | ||
echo | ||
|
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.