Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
buildstream
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
BuildStream
buildstream
Commits
b6d344a9
Commit
b6d344a9
authored
6 years ago
by
Benjamin Schubert
Browse files
Options
Downloads
Patches
Plain Diff
gitlab-ci.yml: Extract test command as a variable
This removes the need of having it synchronized in multiple places
parent
6a83d08e
No related branches found
No related tags found
Loading
Pipeline
#37158474
failed
6 years ago
Stage: prepare
Stage: test
Stage: post
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+4
-3
4 additions, 3 deletions
.gitlab-ci.yml
with
4 additions
and
3 deletions
.gitlab-ci.yml
+
4
−
3
View file @
b6d344a9
...
@@ -13,6 +13,7 @@ stages:
...
@@ -13,6 +13,7 @@ stages:
variables
:
variables
:
PYTEST_ADDOPTS
:
"
--color=yes"
PYTEST_ADDOPTS
:
"
--color=yes"
INTEGRATION_CACHE
:
"
${CI_PROJECT_DIR}/cache/integration-cache"
INTEGRATION_CACHE
:
"
${CI_PROJECT_DIR}/cache/integration-cache"
TEST_COMMAND
:
'
python3
setup.py
test
--index-url
invalid://uri
--addopts
--integration'
#####################################################
#####################################################
# Prepare stage #
# Prepare stage #
...
@@ -77,7 +78,7 @@ source_dist:
...
@@ -77,7 +78,7 @@ source_dist:
# Run the tests from the source distribution, We run as a simple
# Run the tests from the source distribution, We run as a simple
# user to test for permission issues
# user to test for permission issues
-
su buildstream -c
'python3 setup.py test --index-url invalid://uri --addopts --integration'
-
su buildstream -c
"${TEST_COMMAND}"
after_script
:
after_script
:
# Collect our reports
# Collect our reports
...
@@ -134,7 +135,7 @@ tests-unix:
...
@@ -134,7 +135,7 @@ tests-unix:
-
dnf erase -y bubblewrap ostree
-
dnf erase -y bubblewrap ostree
# Since the unix platform is required to run as root, no user change required
# Since the unix platform is required to run as root, no user change required
-
python3 setup.py test --index-url invalid://uri --addopts --integration
-
${TEST_COMMAND}
tests-fedora-missing-deps
:
tests-fedora-missing-deps
:
...
@@ -152,7 +153,7 @@ tests-fedora-missing-deps:
...
@@ -152,7 +153,7 @@ tests-fedora-missing-deps:
-
useradd -Um buildstream
-
useradd -Um buildstream
-
chown -R buildstream:buildstream .
-
chown -R buildstream:buildstream .
-
python3 setup.py test --index-url invalid://uri --addopts --integration
-
${TEST_COMMAND}
# Automatically build documentation for every commit, we want to know
# Automatically build documentation for every commit, we want to know
...
...
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