83 Commits

Author SHA1 Message Date
Andrew Nicols
6555861856 Merge branch 'MDL-77425' of https://github.com/stronk7/moodle 2023-02-28 23:03:49 +08:00
Daniel Ziegenberg
7427854c11
MDL-73018 ci: Move highest PHP to 8.1 (from current 8.0)
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2023-02-28 11:21:48 +01:00
Eloy Lafuente (stronk7)
52f033b732 MDL-77425 travis: Ensure databases shutdown have time to complete
This is only randomly affecting to Moodle 4.2 with PostgreSQL 13
that, for some reason, returns the control to the script before
some files (.pid) have been deleted as part of the database
shutdown.

It seems that adding 1 second of sleep it's enough to workaround
that problem (there are examples of that in various Travis discussions).

So we are adding here 2 seconds, to ensure we are in the safe side
towards consistent passes. And we are applying the same strategy
also to the MySQL installation, just to keep them 100% parallel.
2023-02-27 16:52:14 +01:00
Eloy Lafuente (stronk7)
012a4c5cf8 MDL-74905 ci: travis and gha, raise to agreed requirements
Basically, we only need to change:
- PHP 8.0
- MySQL 8.0
- PostgreSQL 13

Also, remove any php-xmlrpc installation because they aren't
needed since Moodle 4.1.

Finally, ensure that we aren't using mysql bin logs ever, because
they are huge and can make the 1Gb tmpfs to become full. This is
specifically needed for MySQL 8.0, because it comes with bin logs
enabled by default.

We have forked the mysql-action to achieve that:

https://github.com/moodlehq/mysql-action

Worth blaming travis because, after PG 11 and 12 using port 5433,
now they are back (in PG 13) to port 5432. Surely there is some
logic behind the undocumented ping-pong but...
2023-02-03 19:48:02 +01:00
Jun Pataleta
4468b03cd5 NOBUG: Change travis.yml back to master 2022-11-26 17:23:04 +08:00
Jun Pataleta
a3cee9a0ea NOBUG: Change travis.yml to MOODLE_401_STABLE 2022-11-26 17:23:04 +08:00
Eloy Lafuente (stronk7)
61d091013b MDL-71747 ci: travis and gha, raise to agreed requirements
Basically, we only need to change:
- PHP 7.4
- PostgreSQL 12

Also, moving up to focal as dev environment, removing NVM_VERSION
because nvm automatically detects .nvmrc and switching to
socketed connection for PostgreSQL (little improvements).
2022-07-09 11:45:00 +02:00
Daniel Ziegenberg
46b8aecfa8
MDL-74835 ci: Update nodejs version in travis integration to lts/gallium
In MDL-73915 the nodejs version was switched to lts/gallium but the
travis integration was not updated.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2022-05-22 23:46:11 +02:00
Jun Pataleta
21cfd8b216 NOBUG: Change travis.yml back to master 2022-04-17 14:59:55 +08:00
Jun Pataleta
68445c923e NOBUG: Change travis.yml to MOODLE_400_STABLE 2022-04-17 14:59:54 +08:00
Eloy Lafuente (stronk7)
2ce4c0a1ee MDL-70594 ci: Bump Travis and GHA postgres to 10 2021-07-02 00:23:40 +02:00
Eloy Lafuente (stronk7)
a9fb50a1be MDL-71804 travis: Bump to bionic 2021-06-13 22:53:32 +02:00
Eloy Lafuente (stronk7)
52ef32e4ff MDL-70900 ci: Move highest PHP to 8.0 (from current 7.4)
Also adds xmlrpc-beta from PECL (PHP8 moved the extension there)
and setups max_input_vars=5000 as initial value (see MDL-71390).

Note that this also includes a tiny modification when configuring
redis sessions, because there was some outdated code from old issue,
now fixed (MDL-60978), so that info has been removed.
2021-05-07 17:42:39 +02:00
Eloy Lafuente (stronk7)
17ff770eaa MDL-71154 ci: Prevent upstream branches and tags to be built
Both for travis and GHA:

- master and MOODLE_XXX_STABLE branches
- any vX.Y.Z tag

won't lead to a build anymore.
2021-04-13 16:55:42 +02:00
Eloy Lafuente (stronk7)
1dbb7f3d6b MDL-69308 travis: Bump min PHP requirement to 7.3 2021-01-10 23:42:52 +01:00
Eloy Lafuente (stronk7)
df16c07624 MDL-70265 travis: Completely remove the UPGRADE check
It was broken since ages ago, see MDL-64874, so no sense
to keep it eating minutes for nothing.
2020-11-23 13:45:22 +01:00
Eloy Lafuente (stronk7)
866fb5fd56 MDL-70265 travis: Only run highest phpunit if configured via env
By default only lowest php version will be executed, and only pgsql.

This default behavior can be changed with a new variable:

MOODLE_PHP = [all]
MOODLE_DATABASE = [pgsql | mysqli | all]
2020-11-21 11:28:11 +01:00
Jake Dallimore
5e207348d3 Merge branch 'MDL-52407-master' of git://github.com/vmdef/moodle 2020-10-07 10:45:24 +08:00
Andrew Nicols
819d10fc59 MDL-69273 travis: Use exttests for https too 2020-08-18 07:50:48 +08:00
Andrew Nicols
a67cb58e00 MDL-69273 travis: Move exttests check to after_script
The result of the final command `script` phase determines the build
result.

The cleanup belongs in the `after_script` phase.
2020-08-18 07:40:15 +08:00
Victor Deniz Falcon
42ec52d2dd MDL-52407 travis: use Travis default notifications(email) 2020-08-11 17:07:34 +01:00
Matteo Scaramuccia
3ce1eba180 MDL-66322 travis: Configure a local copy of 'exttests' 2020-07-06 23:02:56 +02:00
Eloy Lafuente (stronk7)
7be8da04cd NOBUG: Change travis.yml back to master 2020-06-13 20:04:50 +02:00
Eloy Lafuente (stronk7)
ea24bef18a NOBUG: Change travis.yml to MOODLE_39_STABLE 2020-06-13 20:04:49 +02:00
Eloy Lafuente (stronk7)
31bb99549e MDL-66263 travis: Simple bump to php74
Also update a couple of places (mysql, node)
that were not runnig really on highest. Now they are.
2020-05-02 17:19:15 +02:00
Luca Bösch
9901ce5f68 MDL-68392 travis: Fix validation warnings and infos
Can verify that this file passes the validation @
https://config.travis-ci.com/explore
2020-04-10 00:12:16 +02:00
Jake Dallimore
c9c1654166 MDL-65809 core: travis min php version set to 7.2 to match requirements 2019-12-27 15:21:09 +08:00
Eloy Lafuente (stronk7)
bc4c075960 NOBUG: Change travis.yml back to master 2019-11-16 17:54:08 +01:00
Eloy Lafuente (stronk7)
4da834dcdc NOBUG: Change travis.yml to MOODLE_38_STABLE 2019-11-16 17:54:08 +01:00
Mathew May
e0f0f76344 MDL-65992 travis: Migrate to Xenial distro and default MySQL service 2019-07-31 12:56:39 +08:00
Eloy Lafuente (stronk7)
3b07f13d52 MDL-66062 travis: Force PHP 7.1.30 to avoid some unit test failures
Make this sticky because current default version (7.1.11)
has a bug with redis-extension outputting information and breaking
tests.
2019-07-02 12:57:52 +02:00
Sara Arjona
d6c15a77a2 Merge branch 'MDL-60088' of git://github.com/Chocolate-lightning/moodle 2019-06-26 18:10:58 +02:00
Mathew May
d3e61fdf72 MDL-60088 travis: add dist:trusty to travis
We are doing this because travis changed its default release to xenial.
So this is a stop gap and we will add xenial support moving forward.
2019-06-21 14:50:29 +08:00
Andrew Nicols
e9aaf755d2 MDL-60978 travis: Re-enable Redis session tests 2019-06-21 14:36:13 +08:00
Eloy Lafuente (stronk7)
a8b2f03d8b MDL-64530 travis: Enabble PHP 7.3 and redis cache
This commit performs a number of changes:

- Enables PHP 7.3, replacing PHP 7.2 (max/min approach).
- Enables back the redis service
- Configures redis cache store tests to be run.
- Disables redis session tests for PHP 7.2 and up (MDL-60978)
2019-05-21 01:24:11 +02:00
Eloy Lafuente (stronk7)
374c1763ba NOBUG: Change travis.yml back to master 2019-05-19 11:18:34 +02:00
Eloy Lafuente (stronk7)
c0f098cd57 NOBUG: Change travis.yml to MOODLE_37_STABLE 2019-05-19 11:18:34 +02:00
Eloy Lafuente (stronk7)
f580d20adf MDL-63276 travis support: Bump to PHP 7.1 required 2019-01-03 01:17:17 +01:00
Eloy Lafuente (stronk7)
2c608daca7 NOBUG: Change travis.yml back to master 2018-12-02 00:18:46 +01:00
Eloy Lafuente (stronk7)
0cbcd08946 NOBUG: Change travis.yml to MOODLE_36_STABLE 2018-12-02 00:18:45 +01:00
Eloy Lafuente (stronk7)
83a548c1d2 MDL-63346 travis: GRUNT job immune to npm-shrinkwrap.json changes
When upgrading nodejs/npm versions, there are modifications to
different packages or to the format of the npm-shrinkwrap.json
file. Usually that leads to failed jobs untill the bundled file
is updated.

To avoid that, we just ignore the npm-shrinkwrap.json file, so
just the REAL modifications in css/js/ignore stuff are considered.
2018-09-14 11:55:23 +02:00
Matteo Scaramuccia
22d032301b MDL-61893 JavaScript: Accept any node version but Carbon (LTS) 2018-05-18 00:36:43 +02:00
Eloy Lafuente (stronk7)
cf6825cc43 NOBUG: Change travis.yml back to master 2018-05-16 18:44:30 +02:00
Eloy Lafuente (stronk7)
4c8005a0ff NOBUG: Change travis.yml to MOODLE_35_STABLE 2018-05-16 18:44:30 +02:00
Andrew Nicols
33dca94573 MDL-61689 phpunit: Be stricter about output during unit tests
This change also add fail-on-risky to travis to help pick these up, and
verbosity too.

We only fail on risky during Travis and not during normal output because
developers may want to debug tests.
2018-03-20 08:30:42 +08:00
Damyon Wiese
3715c59ef9 MDL-60951 travis: Disable redis on travis
Redis unit tests are currently failing on php 7.2 due to https://bugs.php.net/bug.php?id=75628
2017-12-06 10:59:54 +08:00
Eloy Lafuente (stronk7)
6821ca92ad NOBUG: Change travis.yml back to master 2017-11-11 19:31:19 +01:00
Eloy Lafuente (stronk7)
07c0bb10fb NOBUG: Change travis.yml to MOODLE_34_STABLE 2017-11-11 19:31:18 +01:00
Eloy Lafuente (stronk7)
1322351b92 MDL-60611 phpunit: Bump phpunit to 6.4 and travis to use PHP72 2017-11-02 23:45:21 +01:00
Damyon Wiese
66242b95e0 MDL-60503 npm: Lock required node 8.9.x (LTS) 2017-11-01 14:52:16 +08:00