Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LHCbDIRAC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Anton Lu
LHCbDIRAC
Commits
e47d62c9
Commit
e47d62c9
authored
7 years ago
by
Christophe Haen
Browse files
Options
Downloads
Patches
Plain Diff
GitlabCI: unit test on merge request
parent
7ceb3865
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+25
-0
25 additions, 0 deletions
.gitlab-ci.yml
with
25 additions
and
0 deletions
.gitlab-ci.yml
+
25
−
0
View file @
e47d62c9
...
...
@@ -10,6 +10,31 @@ stages:
-
release_docker
# This runs py.test
run_pytest
:
image
:
gitlab-registry.cern.ch/ci-tools/ci-worker:cc7
before_script
:
# If we are in a pre release branch we use integration of DIRAC, otherwise master
-
diracBranch=$(grep -E ' *v' LHCbDIRAC/releases.cfg | head -n 1 | grep -q pre; if [ $? -eq 0 ]; then echo "integration"; else echo "master"; fi)
-
echo "Using DIRAC branch $diracBranch"
-
git clone https://github.com/DIRACGrid/DIRAC.git
-
cd DIRAC
-
git checkout $diracBranch
-
cd ..
-
yum install -y mysql mysql-libs mysql-devel make ncurses-devel
-
pip install --upgrade setuptools
-
pip install --upgrade pip
-
pip install -r DIRAC/requirements.txt
stage
:
test
only
:
-
branches
script
:
-
cd LHCbDIRAC
-
py.test . --cov=. --cov-report term-missing --cov-report xml --junitxml=pytests.xml
# This creates and deploy the tarball on AFS
# It is triggered with a tag only
create_tarball
:
...
...
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