Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
soledad
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
leap
soledad
Commits
d6c0e30e
Unverified
Commit
d6c0e30e
authored
8 years ago
by
Varac
Committed by
Kali Kaneko
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[benchmarks] Fetch files from the future
parent
6f15d418
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+15
-10
15 additions, 10 deletions
.gitlab-ci.yml
with
15 additions
and
10 deletions
.gitlab-ci.yml
+
15
−
10
View file @
d6c0e30e
...
...
@@ -20,13 +20,6 @@ cache:
before_script
:
-
echo "Running on ${HOST_HOSTNAME:=$(hostname)}"
# By default, gitlab-runner will checkout in a detached HEAD
# (see https://gitlab.com/gitlab-org/gitlab-ce/issues/19421)
# We want pytest-benchmark to report the proper branch name,
# so we make sure we stay at the current branch
-
git checkout -B "$CI_BUILD_REF_NAME" "$CI_BUILD_REF"
-
git status
-
git show -s --pretty=fuller
.job_template
:
&job_definition
stage
:
package
...
...
@@ -75,11 +68,21 @@ benchmark:
-
couchdb
allow_failure
:
true
script
:
# We need some files on order to post the right benchmarking data to elasticsearch
-
git checkout origin/master testing/tox.ini testing/tests/benchmarks/conftest.py testing/tests/conftest.py
-
sed -i 's/drebs\/pytest-benchmark.git@use-netrc-file/varac\/pytest-benchmark.git@unmerged_prs/' testing/tox.ini
# By default, gitlab-runner will checkout in a detached HEAD
# (see https://gitlab.com/gitlab-org/gitlab-ce/issues/19421)
# We want pytest-benchmark to report the proper branch name,
# so we make sure we stay at the current branch
-
git checkout -B "$CI_BUILD_REF_NAME" "$CI_BUILD_REF"
# Gitlab will checkout current revision as master / origin/master
# We need some files from the "furure" in order to post the right
# benchmarking data to elasticsearch.
-
git remote add leap https://leap.se/git/soledad
-
git fetch leap
-
git checkout leap/master testing/tox.ini testing/tests/benchmarks/conftest.py testing/tests/conftest.py
-
sed -i 's/drebs.*$/varac\/pytest-benchmark.git@unmerged_prs/' testing/tox.ini
-
grep -A 9 'testenv:benchmark' testing/tox.ini
-
git status
-
git show -s --pretty=fuller
-
cd testing
-
curl -s couchdb:5984
# You can provide a $NETRC variable containing the creds for your
...
...
@@ -92,6 +95,8 @@ benchmark:
# to an elasticsearch instance
-
echo "addopts=$PYTEST_OPTS" >> pytest.ini && chmod 600 pytest.ini
-
/usr/bin/unbuffer tox --recreate -e benchmark -- --couch-url http://couchdb:5984 | /usr/bin/ts -s
# Output locally saved benchmarks if they exist
-
'
if
[
-d
.benchmarks
];
then
find
.benchmarks
-type
f
-exec
cat
{}
\;
;
fi'
build_docker_image
:
stage
:
build
...
...
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