Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
marcus-lodspeakr
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
uib-ub
Spesialsamlingene
marcus-lodspeakr
Merge requests
!17
Resolve "Make gitlab run PHPunit tests"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Make gitlab run PHPunit tests"
16-make-gitlab-run-phpunit-tests
into
master
Overview
3
Commits
16
Pipelines
0
Changes
1
Merged
Oyvind.Gjesdal
requested to merge
16-make-gitlab-run-phpunit-tests
into
master
3 years ago
Overview
3
Commits
16
Pipelines
0
Changes
1
Expand
Closes #16
Edited
3 years ago
by
Stein Magne Bjorklund
0
0
Merge request reports
Compare
version 15
version 15
3e151eaa
3 years ago
version 14
8e2cbc5a
3 years ago
version 13
f9b03b43
3 years ago
version 12
4cca2f8c
3 years ago
version 11
82166cd4
3 years ago
version 10
700a1324
3 years ago
version 9
1934a5cd
3 years ago
version 8
cfc99468
3 years ago
version 7
f27328f9
3 years ago
version 6
200dba13
3 years ago
version 5
9c85bf0e
3 years ago
version 4
c3c92e35
3 years ago
version 3
b2ff1988
3 years ago
version 2
f7998c3e
3 years ago
version 1
1e21749f
3 years ago
master (base)
and
latest version
latest version
6cee4299
16 commits,
3 years ago
version 15
3e151eaa
15 commits,
3 years ago
version 14
8e2cbc5a
14 commits,
3 years ago
version 13
f9b03b43
13 commits,
3 years ago
version 12
4cca2f8c
12 commits,
3 years ago
version 11
82166cd4
11 commits,
3 years ago
version 10
700a1324
10 commits,
3 years ago
version 9
1934a5cd
9 commits,
3 years ago
version 8
cfc99468
8 commits,
3 years ago
version 7
f27328f9
7 commits,
3 years ago
version 6
200dba13
6 commits,
3 years ago
version 5
9c85bf0e
5 commits,
3 years ago
version 4
c3c92e35
4 commits,
3 years ago
version 3
b2ff1988
3 commits,
3 years ago
version 2
f7998c3e
2 commits,
3 years ago
version 1
1e21749f
1 commit,
3 years ago
Show latest version
1 file
+
21
−
21
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
21
−
21
Options
stages
:
-
unit_tests
-
marcus_test
marcus_test
:
variables
:
MARCUS_SERVER
:
$MARCUS_TEST_SERVER_IPV6
image
:
oyvindlg/gitlab-ci-library:ansible-cgi
stage
:
"
marcus_test"
before_script
:
-
eval $(ssh-agent -s)
-
echo $MARCUS_TEST_KEY | base64 --decode | ssh-add -
script
:
-
echo "debug"
-
ssh -6 -o "StrictHostKeyChecking=no" $MARCUS_USER@$MARCUS_SERVER "cd $MARCUS_HOME && git fetch && git checkout $CI_COMMIT_SHA && composer install --no-dev"
-
ssh -6 -o "StrictHostKeyChecking=no" $MARCUS_USER@$MARCUS_SERVER "cd $ADMIN_HOME && git fetch && git checkout $CI_COMMIT_SHA && composer install --no-dev"
tags
:
-
spes
-
test
-
deploy_to_test
unit
_tests
:
stage
:
"
unit_
test
s
"
php
unit
:
stage
:
"
test"
image
:
"
php:7.4"
before_script
:
-
apt-get update -yqq
@@ -27,10 +11,26 @@ unit_tests:
-
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
-
composer install
script
:
-
./vendor/bin/phpunit
tests/*.php
-
./vendor/bin/phpunit
tags
:
-
spes
cache
:
key
:
$CI_COMMIT_REF_SLUG
paths
:
-
"
vendor/"
marcus_test
:
variables
:
MARCUS_SERVER
:
$MARCUS_TEST_SERVER_IPV6
image
:
oyvindlg/gitlab-ci-library:ansible-cgi
stage
:
"
deploy_to_test"
before_script
:
-
eval $(ssh-agent -s)
-
echo $MARCUS_TEST_KEY | base64 --decode | ssh-add -
script
:
-
echo "debug"
-
ssh -6 -o "StrictHostKeyChecking=no" $MARCUS_USER@$MARCUS_SERVER "cd $MARCUS_HOME && git fetch && git checkout $CI_COMMIT_SHA && composer install --no-dev"
-
ssh -6 -o "StrictHostKeyChecking=no" $MARCUS_USER@$MARCUS_SERVER "cd $ADMIN_HOME && git fetch && git checkout $CI_COMMIT_SHA && composer install --no-dev"
tags
:
-
spes
Loading