Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-qtype_stack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-qtype_stack
Commits
7fbe7185
Commit
7fbe7185
authored
2 years ago
by
Cameron Ball
Browse files
Options
Downloads
Patches
Plain Diff
Allow GCL or SBCL Maxima to be used when installing Maxima in GHA
parent
1320ab30
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/moodle-ci.yml
+18
-6
18 additions, 6 deletions
.github/workflows/moodle-ci.yml
with
18 additions
and
6 deletions
.github/workflows/moodle-ci.yml
+
18
−
6
View file @
7fbe7185
...
@@ -4,7 +4,7 @@ on: [push, pull_request]
...
@@ -4,7 +4,7 @@ on: [push, pull_request]
jobs
:
jobs
:
test
:
test
:
runs-on
:
ubuntu-
18
.04
runs-on
:
ubuntu-
22
.04
services
:
services
:
postgres
:
postgres
:
...
@@ -30,31 +30,43 @@ jobs:
...
@@ -30,31 +30,43 @@ jobs:
strategy
:
strategy
:
fail-fast
:
false
fail-fast
:
false
matrix
:
# I don't know why, but mariadb is much slower, so mostly use pgsql.
matrix
:
# I don't know why, but mariadb is much slower, so mostly use pgsql.
# We use a mix of SBCL and GCL, but mostly prefer SBCL as it is faster.
include
:
include
:
-
php
:
'
8.0'
-
php
:
'
8.0'
moodle-branch
:
'
master'
moodle-branch
:
'
master'
database
:
'
pgsql'
database
:
'
pgsql'
maxima
:
'
SBCL'
-
php
:
'
7.4'
-
php
:
'
7.4'
moodle-branch
:
'
MOODLE_401_STABLE'
moodle-branch
:
'
MOODLE_401_STABLE'
database
:
'
pgsql'
database
:
'
pgsql'
maxima
:
'
SBCL'
-
php
:
'
7.4'
-
php
:
'
7.4'
moodle-branch
:
'
MOODLE_400_STABLE'
moodle-branch
:
'
MOODLE_400_STABLE'
database
:
'
pgsql'
database
:
'
pgsql'
maxima
:
'
GCL'
-
php
:
'
7.3'
-
php
:
'
7.3'
moodle-branch
:
'
MOODLE_311_STABLE'
moodle-branch
:
'
MOODLE_311_STABLE'
database
:
'
pgsql'
database
:
'
pgsql'
maxima
:
'
SBCL'
-
php
:
'
7.3'
-
php
:
'
7.3'
moodle-branch
:
'
MOODLE_310_STABLE'
moodle-branch
:
'
MOODLE_310_STABLE'
database
:
'
pgsql'
database
:
'
pgsql'
maxima
:
'
SBCL'
-
php
:
'
7.2'
-
php
:
'
7.2'
moodle-branch
:
'
MOODLE_39_STABLE'
moodle-branch
:
'
MOODLE_39_STABLE'
database
:
'
mariadb'
database
:
'
mariadb'
maxima
:
'
SBCL'
steps
:
steps
:
-
name
:
Install
required libraries
-
name
:
Install
Maxima (${{ matrix.maxima }})
run
:
|
run
:
|
sudo apt-get install gnuplot maxima maxima-share texinfo
maxima="${{ (matrix.maxima == 'SBCL' && 'sbcl') || 'gcl' }}"
maxima --list-avail
wget http://mirrors.kernel.org/ubuntu/pool/main/r/readline/libreadline7_7.0-3_amd64.deb \
https://sourceforge.net/projects/maxima/files/Maxima-Linux/5.42.2-Linux/maxima-common_5.42.2-1_all.deb \
https://sourceforge.net/projects/maxima/files/Maxima-Linux/5.42.2-Linux/maxima-${maxima}_5.42.2-1_amd64.deb
sudo apt-get install libtinfo5
sudo dpkg -i libreadline7_7.0-3_amd64.deb maxima-common_5.42.2-1_all.deb maxima-${maxima}_5.42.2-1_amd64.deb
echo "diff(x^2,x);" | maxima
echo "diff(x^2,x);" | maxima
echo "build_info();" | maxima
echo "build_info();" | maxima
...
@@ -87,11 +99,11 @@ jobs:
...
@@ -87,11 +99,11 @@ jobs:
moodle-plugin-ci install --plugin ./plugin --db-host=127.0.0.1
moodle-plugin-ci install --plugin ./plugin --db-host=127.0.0.1
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_MAXIMAVERSION", "5.4
1.0
");'
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_MAXIMAVERSION", "5.4
2.2
");'
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_MAXIMACOMMAND", "maxima");'
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_MAXIMACOMMAND", "maxima");'
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_MAXIMACOMMANDOPT", "timeout --kill-after=10s 10s ${{ github.workspace }}/maxima_opt_auto -eval '\''(cl-user::run)'\''");'
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_MAXIMACOMMANDOPT", "timeout --kill-after=10s 10s ${{ github.workspace }}/maxima_opt_auto -eval '\''(cl-user::run)'\''");'
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_MAXIMACOMMANDSERVER", "http://pool.home:8080/MaximaPool/MaximaPool");'
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_MAXIMACOMMANDSERVER", "http://pool.home:8080/MaximaPool/MaximaPool");'
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_CASTIMEOUT", "10");'
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_CASTIMEOUT", "10
0
");'
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_MAXIMALIBRARIES", "stats, distrib, descriptive, simplex");'
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_MAXIMALIBRARIES", "stats, distrib, descriptive, simplex");'
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_CASPREPARSE", "true");'
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_CASPREPARSE", "true");'
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_PLATFORM", "linux-optimised");'
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_PLATFORM", "linux-optimised");'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment