Skip to content

Commit 668c499

Browse files
committed
Inline ci-clone into drone.yml
1 parent 18743bf commit 668c499

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

.drone.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ pipeline:
1010
clone:
1111
image: plugins/git
1212
commands:
13-
- ./project/scripts/ci-clone
13+
# if build is PR rebase on top of target branch
14+
- if [ "$DRONE_BUILD_EVENT" = "pull_request" ]; then
15+
git config user.email "[email protected]";
16+
git config user.name "Dotty CI";
17+
git pull "$DRONE_REMOTE_URL" "$DRONE_BRANCH";
18+
fi
19+
# clone submodules in parallelRiRem
20+
- git submodule update --init --recursive --jobs 3
1421

1522
# TESTS:
1623
# We run tests in parallel. Tests run in a copy of the working directory to avoid conflict

project/scripts/ci-clone

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)