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
db3d36b6
Commit
db3d36b6
authored
5 years ago
by
Tim Hunt
Browse files
Options
Downloads
Patches
Plain Diff
Fix travis build
parent
b5f71486
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.travis.yml
+52
-42
52 additions, 42 deletions
.travis.yml
db/install.php
+1
-1
1 addition, 1 deletion
db/install.php
with
53 additions
and
43 deletions
.travis.yml
+
52
−
42
View file @
db3d36b6
...
...
@@ -2,13 +2,16 @@ language: php
sudo
:
required
services
:
mysql
addons
:
firefox
:
"
47.0.1"
postgresql
:
"
9.6"
apt
:
packages
:
-
o
racle-java8-installer
-
oracle-java8-set-default
-
o
penjdk-8-jre-headless
-
chromium-chromedriver
-
maxima
-
maxima-share
-
texinfo
...
...
@@ -27,66 +30,72 @@ matrix:
# how to do that.
include
:
-
php
:
7.0
env
:
TASK=PHPUNIT MOODLE_BRANCH=MOODLE_32_STABLE DB=pgsql
-
php
:
5.6
env
:
TASK=PHPUNIT MOODLE_BRANCH=MOODLE_33_STABLE DB=mysqli
# Would be good to run this next test in PHP 7.2, but STACK does not support that yet.
-
php
:
7.0
env
:
TASK=PHPUNIT MOODLE_BRANCH=MOODLE_34_STABLE DB=pgsql
-
php
:
7.1
env
:
TASK=PHPUNIT MOODLE_BRANCH=MOODLE_35_STABLE DB=mysqli
-
php
:
7.1
env
:
TASK=PHPUNIT MOODLE_BRANCH=MOODLE_36_STABLE DB=pgsql
# Master here will need to be changed to MOODLE_37_STABLE once Moodle 3.7 has been released.
-
php
:
7.1
env
:
TASK=PHPUNIT MOODLE_BRANCH=master DB=mysqli
-
php
:
5.6
env
:
TASK=BEHAT MOODLE_BRANCH=MOODLE_32_STABLE DB=mysqli
-
php
:
7.0
env
:
TASK=BEHAT MOODLE_BRANCH=MOODLE_33_STABLE DB=pgsql
# - php: 7.0
# env: TASK=PHPUNIT MOODLE_BRANCH=MOODLE_32_STABLE DB=pgsql
#
# - php: 5.6
# env: TASK=PHPUNIT MOODLE_BRANCH=MOODLE_33_STABLE DB=mysqli
#
# # Would be good to run this next test in PHP 7.2, but STACK does not support that yet.
# - php: 7.0
# env: TASK=PHPUNIT MOODLE_BRANCH=MOODLE_34_STABLE DB=pgsql
#
# - php: 7.1
# env: TASK=PHPUNIT MOODLE_BRANCH=MOODLE_35_STABLE DB=mysqli
#
# - php: 7.1
# env: TASK=PHPUNIT MOODLE_BRANCH=MOODLE_36_STABLE DB=pgsql
-
php
:
7.1
env
:
TASK=BEHAT MOODLE_BRANCH=MOODLE_34_STABLE DB=mysqli
# Would be good to run this next test in PHP 7.2, but STACK does not support that yet.
-
php
:
7.0
env
:
TASK=BEHAT MOODLE_BRANCH=MOODLE_35_STABLE DB=pgsql
env
:
TASK=PHPUNIT MOODLE_BRANCH=MOODLE_37_STABLE DB=mysqli
# # Master here will need to be changed to MOODLE_38_STABLE once Moodle 3.8 has been released.
# - php: 7.1
# env: TASK=PHPUNIT MOODLE_BRANCH=master DB=pgsql
# - php: 5.6
# env: TASK=BEHAT MOODLE_BRANCH=MOODLE_32_STABLE DB=mysqli
#
# - php: 7.0
# env: TASK=BEHAT MOODLE_BRANCH=MOODLE_33_STABLE DB=pgsql
#
# - php: 7.1
# env: TASK=BEHAT MOODLE_BRANCH=MOODLE_34_STABLE DB=mysqli
#
# # Would be good to run this next test in PHP 7.2, but STACK does not support that yet.
# - php: 7.0
# env: TASK=BEHAT MOODLE_BRANCH=MOODLE_35_STABLE DB=pgsql
#
# - php: 7.1
# env: TASK=BEHAT MOODLE_BRANCH=MOODLE_36_STABLE DB=mysqli
-
php
:
7.1
env
:
TASK=BEHAT MOODLE_BRANCH=MOODLE_3
6
_STABLE DB=
my
sql
i
env
:
TASK=BEHAT MOODLE_BRANCH=MOODLE_3
7
_STABLE DB=
pg
sql
# Master here will need to be changed to MOODLE_3
6
_STABLE once Moodle 3.
7
has been released.
-
php
:
7.1
env
:
TASK=BEHAT MOODLE_BRANCH=master DB=
pg
sql
#
# Master here will need to be changed to MOODLE_3
8
_STABLE once Moodle 3.
8
has been released.
#
- php: 7.1
#
env: TASK=BEHAT MOODLE_BRANCH=master DB=
my
sql
i
-
php
:
7.1
env
:
TASK=CODESTYLE MOODLE_BRANCH=MOODLE_3
5
_STABLE DB=mysqli
env
:
TASK=CODESTYLE MOODLE_BRANCH=MOODLE_3
7
_STABLE DB=mysqli
-
php
:
7.1
env
:
TASK=CODEKNOWNFAILS MOODLE_BRANCH=MOODLE_3
5
_STABLE DB=mysqli
env
:
TASK=CODEKNOWNFAILS MOODLE_BRANCH=MOODLE_3
7
_STABLE DB=mysqli
allow_failures
:
# This relates to the bit right at the end, where we run some of the coding style checks in this group.
# We don't care if these checks fail, but we want to be able to see the results.
-
php
:
7.1
env
:
TASK=CODEKNOWNFAILS MOODLE_BRANCH=MOODLE_3
5
_STABLE DB=mysqli
env
:
TASK=CODEKNOWNFAILS MOODLE_BRANCH=MOODLE_3
7
_STABLE DB=mysqli
before_install
:
-
phpenv config-rm xdebug.ini
-
nvm install
8.9
-
nvm use
8.9
-
cd ../..
-
composer create-project -n --no-dev --prefer-dist
moodlerooms
/moodle-plugin-ci ci ^2
-
composer create-project -n --no-dev --prefer-dist
blackboard-open-source
/moodle-plugin-ci ci ^2
-
export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
install
:
...
...
@@ -100,6 +109,7 @@ install:
-
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_CASRESULTSCACHE", "db");'
-
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_MAXIMACOMMAND", "timeout --kill-after=10s 10s /home/travis/build/maxima_opt_auto -eval '\''(cl-user::run)'\''");'
-
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_PLOTCOMMAND", "gnuplot");'
-
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_CASDEBUGGING", "0");'
-
cp /home/travis/build/moodledata/phpu_moodledata/stack/maxima_opt_auto /home/travis/build/maxima_opt_auto
...
...
@@ -114,7 +124,7 @@ script:
-
if [ "$TASK" = 'PHPUNIT' ]; then moodle-plugin-ci phpunit; fi
# Run all the Behat tests.
-
if [ "$TASK" = 'BEHAT' ]; then moodle-plugin-ci behat
;
fi
-
if [ "$TASK" = 'BEHAT' ]; then moodle-plugin-ci behat
--profile chrome;
fi
# Run all the various code style tests - this subset should all pass.
-
if [ "$TASK" = 'CODESTYLE' ]; then moodle-plugin-ci phplint; fi
...
...
This diff is collapsed.
Click to expand it.
db/install.php
+
1
−
1
View file @
db3d36b6
...
...
@@ -74,7 +74,7 @@ function xmldb_qtype_stack_install() {
set_config
(
'casdebugging'
,
1
,
'qtype_stack'
);
set_config
(
'mathsdisplay'
,
'mathjax'
,
'qtype_stack'
);
if
(
QTYPE_STACK_TEST_CONFIG_PLATFORM
!==
'server'
)
{
if
(
!
defined
(
'QTYPE_STACK_TEST_CONFIG_PLATFORM'
)
||
QTYPE_STACK_TEST_CONFIG_PLATFORM
!==
'server'
)
{
list
(
$ok
,
$message
)
=
stack_cas_configuration
::
create_auto_maxima_image
();
if
(
!
$ok
)
{
throw
new
coding_exception
(
'maxima_opt_auto creation failed.'
,
$message
);
...
...
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