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
Commits
9b9d9e58
Commit
9b9d9e58
authored
3 years ago
by
Oyvind.Gjesdal
Committed by
Stein Magne Bjorklund
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Make CI run PHPUnit tests
- Uses PHP 7.4 docker image and composer.
parent
49cb754b
No related branches found
No related tags found
1 merge request
!17
Resolve "Make gitlab run PHPunit tests"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+21
-5
21 additions, 5 deletions
.gitlab-ci.yml
with
21 additions
and
5 deletions
.gitlab-ci.yml
+
21
−
5
View file @
9b9d9e58
stages
:
stages
:
-
marcus_test
-
test
-
deploy_to_test
phpunit
:
stage
:
"
test"
image
:
"
php:7.4"
before_script
:
-
apt-get update -yqq
-
apt-get install -y git zip
-
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
-
composer install
script
:
-
./vendor/bin/phpunit
tags
:
-
spes
cache
:
key
:
$CI_COMMIT_REF_SLUG
paths
:
-
"
vendor/"
marcus_test
:
marcus_test
:
variables
:
variables
:
MARCUS_SERVER
:
$MARCUS_TEST_SERVER_IPV6
MARCUS_SERVER
:
$MARCUS_TEST_SERVER_IPV6
image
:
oyvindlg/gitlab-ci-library:ansible-cgi
image
:
oyvindlg/gitlab-ci-library:ansible-cgi
stage
:
"
marcus
_test"
stage
:
"
deploy_to
_test"
before_script
:
before_script
:
-
eval $(ssh-agent -s)
-
eval $(ssh-agent -s)
-
echo $MARCUS_TEST_KEY | base64 --decode | ssh-add -
-
echo $MARCUS_TEST_KEY | base64 --decode | ssh-add -
script
:
script
:
-
echo "debug"
-
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 $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"
-
ssh -6 -o "StrictHostKeyChecking=no" $MARCUS_USER@$MARCUS_SERVER "cd $ADMIN_HOME && git fetch && git checkout $CI_COMMIT_SHA && composer install --no-dev"
tags
:
tags
:
-
spes
-
spes
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