Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hsh-maxima
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
hsh-maxima
Commits
9b484fd0
Commit
9b484fd0
authored
5 years ago
by
Lennart Kramer
Browse files
Options
Downloads
Patches
Plain Diff
new werf
parent
203a6143
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+7
-25
7 additions, 25 deletions
.gitlab-ci.yml
testimage.sh
+29
-2
29 additions, 2 deletions
testimage.sh
with
36 additions
and
27 deletions
.gitlab-ci.yml
+
7
−
25
View file @
9b484fd0
...
...
@@ -12,8 +12,7 @@ variables:
TRAVIS_BUILD_DIR
:
"
$CI_PROJECT_DIR"
# gitlab ci script taken from https://gist.github.com/danielneis/5c6140ec8150c6151a54bccd26950278
services
:
-
postgres:latest
cache
:
paths
:
...
...
@@ -34,30 +33,13 @@ build_webservice:
test_maxima
:
image
:
moodlehq/moodle-php-apache:7.3
stage
:
test_maxima
services
:
-
postgres:latest
variables
:
MOODLE_BRANCH
:
"
MOODLE_37_STABLE"
QSTACK_VERSION
:
"
v4.3.2"
tags
:
-
docker
script
:
-
apt update && apt install git-core postgresql-client texinfo
-
cd $CI_PROJECT_DIR/..
-
curl -sS https://getcomposer.org/installer | php
-
mv composer.phar /usr/local/bin/composer
-
composer create-project -n --no-dev moodlerooms/moodle-plugin-ci ci ^1
-
export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
-
chmod u+x ci/bin/moodle-plugin-ci
-
chmod u+x ci/bin/*
-
umask u+x
-
git clone --branch "$QSTACK_VERSION" https://github.com/maths/moodle-qtype_stack
-
moodle-plugin-ci add-plugin maths/moodle-qbehaviour_dfexplicitvaildate
-
moodle-plugin-ci add-plugin maths/moodle-qbehaviour_dfcbmexplicitvaildate
-
moodle-plugin-ci add-plugin maths/moodle-qbehaviour_adaptivemultipart
-
moodle-plugin-ci install --plugin moodle-qtype_stack
-
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_PLATFORM", "server");'
-
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_MAXIMAVERSION", "5.41.0");'
-
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_CASTIMEOUT", "10");'
-
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_CASRESULTSCACHE", "db");'
-
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_MAXIMACOMMAND", "http://kubecluster.test/godev/");'
-
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");'
-
moodle-plugin-ci phpunit
-
./install.sh
This diff is collapsed.
Click to expand it.
testimage.sh
+
29
−
2
View file @
9b484fd0
#!/bin/bash
# arg1 name of testimage
cowsay
$1
"cant be tested yet"
;
apt-get update
-y
&&
apt-get
install
-y
git-core postgresql-client texinfo maxima maxima-share
curl
-o-
https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
.
$HOME
/.nvm/nvm.sh
nvm
install
14
nvm use 14
curl
-sS
https://getcomposer.org/installer | php
mv
composer.phar /usr/local/bin/composer
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
"
chmod
u+x ci/bin/moodle-plugin-ci
chmod
u+x ci/bin/
*
umask
u+x
git clone
--branch
"
$QSTACK_VERSION
"
https://github.com/maths/moodle-qtype_stack
moodle-plugin-ci add-plugin maths/moodle-qbehaviour_dfexplicitvaildate
moodle-plugin-ci add-plugin maths/moodle-qbehaviour_dfcbmexplicitvaildate
moodle-plugin-ci add-plugin maths/moodle-qbehaviour_adaptivemultipart
moodle-plugin-ci
install
--plugin
moodle-qtype_stack
--db-host
=
postgres
moodle-plugin-ci add-config
'define("QTYPE_STACK_TEST_CONFIG_PLATFORM", "server");'
moodle-plugin-ci add-config
'define("QTYPE_STACK_TEST_CONFIG_MAXIMAVERSION", "5.41.0");'
moodle-plugin-ci add-config
'define("QTYPE_STACK_TEST_CONFIG_CASTIMEOUT", "10");'
moodle-plugin-ci add-config
'define("QTYPE_STACK_TEST_CONFIG_CASRESULTSCACHE", "db");'
moodle-plugin-ci add-config
'define("QTYPE_STACK_TEST_CONFIG_MAXIMACOMMAND", "http://kubecluster.test/godev/");'
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");'
moodle-plugin-ci phpunit
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