Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
advtrains_luaautomation_sync
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Minetest
advtrains_luaautomation_sync
Commits
8d96f2aa
Commit
8d96f2aa
authored
Oct 13, 2021
by
Peter Nerlich
Browse files
Options
Downloads
Patches
Plain Diff
add pipeline
parent
f19c5db7
No related branches found
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitlab-ci.yml
+20
-0
20 additions, 0 deletions
.gitlab-ci.yml
apply_patch.sh
+2
-2
2 additions, 2 deletions
apply_patch.sh
clean.sh
+5
-4
5 additions, 4 deletions
clean.sh
create_env.sh
+6
-5
6 additions, 5 deletions
create_env.sh
generate_patch.sh
+2
-2
2 additions, 2 deletions
generate_patch.sh
with
35 additions
and
13 deletions
.gitlab-ci.yml
0 → 100644
+
20
−
0
View file @
8d96f2aa
image
:
alpine
before_script
:
-
apk add git zip patch
build
:
stage
:
build
only
:
-
master
-
testing
script
:
-
./create_env.sh
-
./apply_patch.sh
-
mv patched/ advtrains_luaautomation_sync/
-
zip -r advtrains_luaautomation_sync.zip advtrains_luaautomation_sync/
artifacts
:
paths
:
-
advtrains_luaautomation_sync/
-
advtrains_luaautomation_sync.zip
This diff is collapsed.
Click to expand it.
apply_patch.sh
+
2
−
2
View file @
8d96f2aa
#!/usr/bin/env sh
#!/usr/bin/env sh
cd
$(
dirname
"
$
{
BASH_SOURCE
[0]
}
"
)
DIR
=
"
$(
cd
"
$(
dirname
"
$
0
"
)
"
&&
pwd
)
"
SCRIPT_DIR
=
$(
pwd
)
cd
"
$DIR
"
[
!
-d
patched
]
&&
[
!
-d
patched
]
&&
echo
"Path patched/ doesn't exist!"
&&
echo
"Path patched/ doesn't exist!"
&&
...
...
This diff is collapsed.
Click to expand it.
clean.sh
+
5
−
4
View file @
8d96f2aa
#!/usr/bin/env sh
#!/usr/bin/env sh
cd
$(
dirname
"
$
{
BASH_SOURCE
[0]
}
"
)
DIR
=
"
$(
cd
"
$(
dirname
"
$
0
"
)
"
&&
pwd
)
"
SCRIPT_DIR
=
$(
pwd
)
cd
"
$DIR
"
git submodule update
git
-C
.
rev-parse 2>/dev/null
&&
(
git submodule update
;
git checkout sync.patch
)
rm
-rf
patched
rm
-rf
patched
git checkout sync.patch
This diff is collapsed.
Click to expand it.
create_env.sh
+
6
−
5
View file @
8d96f2aa
#!/usr/bin/env sh
#!/usr/bin/env sh
cd
$(
dirname
"
$
{
BASH_SOURCE
[0]
}
"
)
DIR
=
"
$(
cd
"
$(
dirname
"
$
0
"
)
"
&&
pwd
)
"
SCRIPT_DIR
=
$(
pwd
)
cd
"
$DIR
"
[
!
-f
advtrains/init.lua
]
&&
git
-C
.
rev-parse 2>/dev/null
&&
([
!
-f
advtrains/init.lua
]
&&
git submodule update
--init
||
git submodule update
--init
||
git submodule foreach git fetch
git submodule foreach git fetch
)
[
!
-d
patched
]
&&
[
!
-d
patched
]
&&
yn
=
"y"
||
yn
=
"y"
||
...
...
This diff is collapsed.
Click to expand it.
generate_patch.sh
+
2
−
2
View file @
8d96f2aa
#!/usr/bin/env sh
#!/usr/bin/env sh
cd
$(
dirname
"
$
{
BASH_SOURCE
[0]
}
"
)
DIR
=
"
$(
cd
"
$(
dirname
"
$
0
"
)
"
&&
pwd
)
"
SCRIPT_DIR
=
$(
pwd
)
cd
"
$DIR
"
[
!
-d
patched
]
&&
[
!
-d
patched
]
&&
echo
"Path patched/ doesn't exist!"
&&
echo
"Path patched/ doesn't exist!"
&&
...
...
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