Skip to content

[tests-only] Implement .drone.env #1567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 18, 2021
Merged

[tests-only] Implement .drone.env #1567

merged 2 commits into from
Mar 18, 2021

Conversation

phil-davis
Copy link
Contributor

@phil-davis phil-davis commented Mar 18, 2021

to store the CORE_BRANCH and CORE_COMMITID for tests, the same way as is done in https://github.com/owncloud/ocis/blob/master/.drone.env

The disadvantage of having the commit-id embedded in .drone.star is that a .drone.star in the PR branch gets used from the PR branch and if there are other, later, changes to .drone.star in master they do not take effect in drone CI. This can lead to confusion about exactly what pipelines ran with what settings in CI.

Having .drone.env means that .drone.star can be much less modified.

Note: I had to change to owncloudci/alpine:latest (like in owncloud/ocis) for cloneOc10TestReposStep() because it used the source command, and owncloudci/php:7.4 complained that source did not exist!

@phil-davis phil-davis requested a review from labkode as a code owner March 18, 2021 07:14
@phil-davis
Copy link
Contributor Author

https://drone.cernbox.cern.ch/cs3org/reva/960/5/6

+ git checkout $CORE_COMMITID
Note: switching to '60444e34b52b7c22ea817375947c9b60e42cd7da'.

Looks good - it switches to the correct commit id that is specified in .drone.env

@phil-davis
Copy link
Contributor Author

phil-davis commented Mar 18, 2021

This needs #1559 merged first. Then I will rebase... - done

@phil-davis phil-davis self-assigned this Mar 18, 2021
@phil-davis phil-davis requested a review from ishank011 March 18, 2021 14:12
@phil-davis
Copy link
Contributor Author

@ishank011 IMO CI will pass now. Please review.

@ishank011 ishank011 merged commit 03346dd into cs3org:master Mar 18, 2021
@phil-davis phil-davis deleted the drone-env branch March 18, 2021 21:39
ffurano pushed a commit to ffurano/reva that referenced this pull request Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants