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
THORNode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
THORChain
THORNode
Commits
f4fc1b2e
Commit
f4fc1b2e
authored
1 year ago
by
Ursa (9R)
Committed by
Ursa (9R)
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
[ci] Skip Versioned Function Lint on Develop
parent
85b780d0
No related branches found
No related tags found
Loading
Pipeline
#927870065
passed
1 year ago
Stage: reset
Stage: generate
Stage: test
Stage: build
Stage: long-test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/lint-versions.bash
+8
-3
8 additions, 3 deletions
scripts/lint-versions.bash
with
8 additions
and
3 deletions
scripts/lint-versions.bash
+
8
−
3
View file @
f4fc1b2e
...
...
@@ -8,11 +8,16 @@ set -euo pipefail
VERSION
=
$(
awk
-F
.
'{ print $2 }'
version
)
CI_MERGE_REQUEST_TITLE
=
${
CI_MERGE_REQUEST_TITLE
:-}
go run tools/versioned-functions/main.go
--version
=
"
$VERSION
"
>
/tmp/versioned-fns-current
git fetch https://gitlab.com/thorchain/thornode.git develop
git checkout FETCH_HEAD
# skip for develop
if
git merge-base
--is-ancestor
"
$(
git rev-parse HEAD
)
"
"
$(
git rev-parse FETCH_HEAD
)
"
;
then
echo
"Skipping lint for commit in develop (
$(
git rev-parse FETCH_HEAD
)
)."
exit
0
fi
go run tools/versioned-functions/main.go
--version
=
"
$VERSION
"
>
/tmp/versioned-fns-current
git checkout FETCH_HEAD
git checkout -
--
tools scripts
go run tools/versioned-functions/main.go
--version
=
"
$VERSION
"
>
/tmp/versioned-fns-develop
git checkout -
...
...
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