Skip to content

Commit

Permalink
Merge pull request #29941 from code-dot-org/unit-tests-dont-merge-sta…
Browse files Browse the repository at this point in the history
…ging

Don't merge from staging before unit tests on drone
  • Loading branch information
Winter committed Jul 25, 2019
2 parents 967324a + fc3155c commit 268ea5e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ steps:
# Also fetch the target branch (which is staging for pull requests.) We need this for determining which tests to run based on changed files.
- git remote set-branches --add origin $DRONE_TARGET_BRANCH
- git fetch --depth 100 origin $DRONE_TARGET_BRANCH
# Merge so we're up-to-date with the target before running tests.
- git config user.name "Drone"
- git config user.email "drone-fake-user@code.org"
- git merge origin/$DRONE_TARGET_BRANCH

- name: verify-pr
image: joshlory/code-dot-org:0.10
Expand Down Expand Up @@ -114,7 +110,8 @@ steps:
# Also fetch the target branch (which is staging for pull requests.) We need this for determining which tests to run based on changed files.
- git remote set-branches --add origin $DRONE_TARGET_BRANCH
- git fetch --depth 100 origin $DRONE_TARGET_BRANCH
# Merge so we're up-to-date with the target before running tests.
# Merge so we're up-to-date with the target before running tests. We only do this for UI tests, not unit tests,
# since it disrupts Codecov pull request reports.
- git config user.name "Drone"
- git config user.email "drone-fake-user@code.org"
- git merge origin/$DRONE_TARGET_BRANCH
Expand Down Expand Up @@ -199,6 +196,6 @@ trigger:
- pull_request
---
kind: signature
hmac: 79d4be8e9397ef07b8896318ddfc617abda7f25e95a773604ddad6865c531d9e
hmac: e1f0041c4f9eaf8cfb2bf8d7aad6935f832708735c1830480aa51c3fc89acdf7

...

0 comments on commit 268ea5e

Please sign in to comment.