mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-13 11:25:02 -05:00
ci: Only use credits for pull requests to the main repo
This commit is contained in:
parent
6f2ca726ce
commit
facf5e37f6
1 changed files with 15 additions and 10 deletions
21
.cirrus.yml
21
.cirrus.yml
|
@ -8,7 +8,6 @@ env:
|
||||||
CCACHE_SIZE: "200M"
|
CCACHE_SIZE: "200M"
|
||||||
CCACHE_DIR: "/tmp/ccache_dir"
|
CCACHE_DIR: "/tmp/ccache_dir"
|
||||||
|
|
||||||
### Base template
|
|
||||||
# https://cirrus-ci.org/guide/tips-and-tricks/#sharing-configuration-between-tasks
|
# https://cirrus-ci.org/guide/tips-and-tricks/#sharing-configuration-between-tasks
|
||||||
base_template: &BASE_TEMPLATE
|
base_template: &BASE_TEMPLATE
|
||||||
skip: $CIRRUS_REPO_FULL_NAME == "bitcoin-core/gui" && $CIRRUS_PR == "" # No need to run on the read-only mirror, unless it is a PR. https://cirrus-ci.org/guide/writing-tasks/#conditional-task-execution
|
skip: $CIRRUS_REPO_FULL_NAME == "bitcoin-core/gui" && $CIRRUS_PR == "" # No need to run on the read-only mirror, unless it is a PR. https://cirrus-ci.org/guide/writing-tasks/#conditional-task-execution
|
||||||
|
@ -19,8 +18,8 @@ base_template: &BASE_TEMPLATE
|
||||||
- git config --global user.email "ci@ci.ci"
|
- git config --global user.email "ci@ci.ci"
|
||||||
- git config --global user.name "ci"
|
- git config --global user.name "ci"
|
||||||
- git merge FETCH_HEAD # Merge base to detect silent merge conflicts
|
- git merge FETCH_HEAD # Merge base to detect silent merge conflicts
|
||||||
|
stateful: false # https://cirrus-ci.org/guide/writing-tasks/#stateful-tasks
|
||||||
|
|
||||||
### Global task template
|
|
||||||
global_task_template: &GLOBAL_TASK_TEMPLATE
|
global_task_template: &GLOBAL_TASK_TEMPLATE
|
||||||
<< : *BASE_TEMPLATE
|
<< : *BASE_TEMPLATE
|
||||||
timeout_in: 120m # https://cirrus-ci.org/faq/#instance-timed-out
|
timeout_in: 120m # https://cirrus-ci.org/faq/#instance-timed-out
|
||||||
|
@ -41,6 +40,11 @@ global_task_template: &GLOBAL_TASK_TEMPLATE
|
||||||
ci_script:
|
ci_script:
|
||||||
- ./ci/test_run_all.sh
|
- ./ci/test_run_all.sh
|
||||||
|
|
||||||
|
compute_credits_template: &CREDITS_TEMPLATE
|
||||||
|
# https://cirrus-ci.org/pricing/#compute-credits
|
||||||
|
# Only use credits for pull requests to the main repo
|
||||||
|
use_compute_credits: $CIRRUS_REPO_FULL_NAME == 'bitcoin/bitcoin' && $CIRRUS_PR != ""
|
||||||
|
|
||||||
#task:
|
#task:
|
||||||
# name: "Windows"
|
# name: "Windows"
|
||||||
# windows_container:
|
# windows_container:
|
||||||
|
@ -58,13 +62,14 @@ global_task_template: &GLOBAL_TASK_TEMPLATE
|
||||||
# - choco install python --version=3.7.7 -y
|
# - choco install python --version=3.7.7 -y
|
||||||
|
|
||||||
task:
|
task:
|
||||||
name: 'lint'
|
name: 'lint [bionic]'
|
||||||
<< : *BASE_TEMPLATE
|
<< : *BASE_TEMPLATE
|
||||||
container:
|
container:
|
||||||
image: ubuntu:bionic # For python 3.6, oldest supported version according to doc/dependencies.md
|
image: ubuntu:bionic # For python 3.6, oldest supported version according to doc/dependencies.md
|
||||||
cpu: 1 # Cut bill in half for linting
|
cpu: 1
|
||||||
# For faster CI feedback, immediately schedule the linters. https://cirrus-ci.org/pricing/#compute-credits
|
memory: 1G
|
||||||
use_compute_credits: $CIRRUS_REPO_FULL_NAME == 'bitcoin/bitcoin'
|
# For faster CI feedback, immediately schedule the linters
|
||||||
|
<< : *CREDITS_TEMPLATE
|
||||||
setup_script:
|
setup_script:
|
||||||
- set -o errexit; source ./ci/test/00_setup_env.sh
|
- set -o errexit; source ./ci/test/00_setup_env.sh
|
||||||
before_install_script:
|
before_install_script:
|
||||||
|
@ -103,8 +108,8 @@ task:
|
||||||
|
|
||||||
task:
|
task:
|
||||||
name: '[previous releases, uses qt5 dev package and some depends packages] [unsigned char] [bionic]'
|
name: '[previous releases, uses qt5 dev package and some depends packages] [unsigned char] [bionic]'
|
||||||
# For faster CI feedback, immediately schedule a task that compiles most modules. https://cirrus-ci.org/pricing/#compute-credits
|
# For faster CI feedback, immediately schedule a task that compiles most modules
|
||||||
use_compute_credits: $CIRRUS_REPO_FULL_NAME == 'bitcoin/bitcoin'
|
<< : *CREDITS_TEMPLATE
|
||||||
<< : *GLOBAL_TASK_TEMPLATE
|
<< : *GLOBAL_TASK_TEMPLATE
|
||||||
container:
|
container:
|
||||||
image: ubuntu:bionic
|
image: ubuntu:bionic
|
||||||
|
|
Loading…
Add table
Reference in a new issue