2020-07-15 06:00:53 +00:00
|
|
|
image: mcr.microsoft.com/dotnet/core/sdk:3.1
|
2019-12-26 06:57:40 +00:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
2020-05-05 05:46:55 +00:00
|
|
|
- test
|
2019-12-26 06:57:40 +00:00
|
|
|
|
2020-08-02 14:04:44 +00:00
|
|
|
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:
|
2019-12-26 06:57:40 +00:00
|
|
|
artifacts:
|
|
|
|
expire_in: "30 minutes"
|
2020-08-02 14:04:44 +00:00
|
|
|
name: "BizHawk_devbuild_$CI_COMMIT_REF_SLUG"
|
2019-12-26 06:57:40 +00:00
|
|
|
paths:
|
|
|
|
- output
|
2020-05-05 05:46:55 +00:00
|
|
|
- test_output
|
2020-08-02 14:04:44 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_COMMIT_REF_SLUG != "master"'
|
|
|
|
when: always
|
2019-12-26 06:57:40 +00:00
|
|
|
script:
|
2020-05-05 05:46:55 +00:00
|
|
|
- Dist/BuildRelease.sh
|
2019-12-26 06:57:40 +00:00
|
|
|
stage: build
|
|
|
|
|
2020-05-05 05:46:55 +00:00
|
|
|
check_style:
|
2020-06-06 16:19:01 +00:00
|
|
|
allow_failure: true
|
2020-08-02 14:04:44 +00:00
|
|
|
dependencies: []
|
2020-06-06 16:19:01 +00:00
|
|
|
rules:
|
|
|
|
- if: '$BIZHAWKBUILD_USE_ANALYZERS != null'
|
|
|
|
when: always
|
2020-05-05 05:46:55 +00:00
|
|
|
script:
|
2020-08-02 14:04:44 +00:00
|
|
|
- Dist/BuildRelease.sh -p:MachineRunAnalyzersDuringBuild=true || Dist/BuildRelease.sh -p:MachineRunAnalyzersDuringBuild=true
|
2020-05-05 05:46:55 +00:00
|
|
|
stage: test
|
|
|
|
|
|
|
|
run_tests:
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- test_output/*.coverage.xml
|
|
|
|
reports:
|
|
|
|
junit:
|
|
|
|
- test_output/*.coverage.xml
|
2020-08-02 14:04:44 +00:00
|
|
|
dependencies: []
|
2020-06-06 16:39:28 +00:00
|
|
|
image: mcr.microsoft.com/dotnet/core/sdk:3.1
|
2020-05-05 05:46:55 +00:00
|
|
|
script:
|
2020-08-02 14:04:44 +00:00
|
|
|
- Dist/BuildTestRelease.sh || Dist/BuildTestRelease.sh
|
2020-05-05 05:46:55 +00:00
|
|
|
stage: test
|
|
|
|
|
2020-08-02 14:04:44 +00:00
|
|
|
#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
|