Skip to content
Snippets Groups Projects
Commit 8d96f2aa authored by Peter Nerlich's avatar Peter Nerlich
Browse files

add pipeline

parent f19c5db7
No related branches found
No related tags found
No related merge requests found
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
#!/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!" &&
......
#!/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
#!/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" ||
......
#!/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!" &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment