62 lines
1.3 KiB
YAML
62 lines
1.3 KiB
YAML
image: mcr.microsoft.com/dotnet/core/sdk:3.1
|
|
|
|
stages:
|
|
- build
|
|
- test
|
|
|
|
build_master:
|
|
artifacts:
|
|
expire_in: "1 month"
|
|
name: "BizHawk_devbuild_$CI_COMMIT_REF_SLUG"
|
|
paths:
|
|
- output
|
|
- test_output
|
|
rules:
|
|
- if: '$CI_COMMIT_REF_SLUG == "master"'
|
|
when: always
|
|
script:
|
|
- Dist/BuildRelease.sh
|
|
stage: build
|
|
|
|
build_not_master:
|
|
artifacts:
|
|
expire_in: "30 minutes"
|
|
name: "BizHawk_devbuild_$CI_COMMIT_REF_SLUG"
|
|
paths:
|
|
- output
|
|
- test_output
|
|
rules:
|
|
- if: '$CI_COMMIT_REF_SLUG != "master"'
|
|
when: always
|
|
script:
|
|
- Dist/BuildRelease.sh
|
|
stage: build
|
|
|
|
check_style:
|
|
allow_failure: true
|
|
dependencies: []
|
|
rules:
|
|
- if: '$BIZHAWKBUILD_USE_ANALYZERS != null'
|
|
when: always
|
|
script:
|
|
- Dist/BuildRelease.sh -p:MachineRunAnalyzersDuringBuild=true || Dist/BuildRelease.sh -p:MachineRunAnalyzersDuringBuild=true
|
|
stage: test
|
|
|
|
run_tests:
|
|
artifacts:
|
|
paths:
|
|
- test_output/*.coverage.xml
|
|
reports:
|
|
junit:
|
|
- test_output/*.coverage.xml
|
|
dependencies: []
|
|
image: mcr.microsoft.com/dotnet/core/sdk:3.1
|
|
script:
|
|
- Dist/BuildTestRelease.sh || Dist/BuildTestRelease.sh
|
|
stage: test
|
|
|
|
#cache:
|
|
# key: "$CI_COMMIT_REF_SLUG"
|
|
# paths:
|
|
# - $HOME/.nuget/packages # probably won't work; set NUGET_PACKAGES to `BizHawk_master/.nuget_packages` and cache that
|