File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ blocks:
41
41
- name : ' Build and test'
42
42
commands :
43
43
- ulimit -n 1024
44
- - brew install dotnet-sdk
44
+ - sudo chown -R "$(whoami)" "$(brew --caskroom)"
45
+ - brew install --appdir=~/Applications dotnet-sdk
45
46
- dotnet restore -p:TargetFramework=net8.0
46
47
- make build
47
48
- make test
@@ -159,5 +160,5 @@ blocks:
159
160
- cd test/docker && docker-compose up -d && cd ../..
160
161
- export SEMAPHORE_SKIP_FLAKY_TESTS='true'
161
162
- dotnet restore -p:TargetFramework=net8.0
162
- - cd test/Confluent.SchemaRegistry.Serdes.IntegrationTests && dotnet test -f net8.0 -l "console;verbosity=normal" && cd ../..
163
- # - cd test/Confluent.SchemaRegistry.IntegrationTests && dotnet test -l "console;verbosity=normal" && cd ../..
163
+ - cd test/Confluent.SchemaRegistry.Serdes.IntegrationTests && dotnet test -f net8.0 -l "console;verbosity=normal" && cd ../..
164
+ - cd test/Confluent.SchemaRegistry.IntegrationTests && dotnet test -f net8.0 -l "console;verbosity=normal" && cd ../..
Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ EXAMPLE_DIRS=$(shell find ./examples -name '*.csproj' -exec dirname {} \;)
10
10
TEST_DIRS =$(shell find ./test -name '* .csproj' \;)
11
11
UNIT_TEST_DIRS =$(shell find . -type d -regex '.* UnitTests$$' -exec basename {} \;)
12
12
13
- DEFAULT_FRAMEWORK? =net8.0
13
+ # We want examples to be able to execute with oldest supported .NET version
14
+ DEFAULT_EXAMPLE_FRAMEWORK? =net6.0
15
+ # We want to run tests by default with latest version of .NET
16
+ DEFAULT_TEST_FRAMEWORK? =net8.0
14
17
15
18
all :
16
19
@echo " Usage: make <dotnet-command>"
19
22
.PHONY : test
20
23
21
24
build :
22
- for d in $( EXAMPLE_DIRS) ; do dotnet $@ -f $( DEFAULT_FRAMEWORK ) $$ d; done ; \
23
- for d in $( TEST_DIRS) ; do dotnet $@ -f $( DEFAULT_FRAMEWORK ) $$ d; done ;
25
+ for d in $( EXAMPLE_DIRS) ; do dotnet $@ -f $( DEFAULT_EXAMPLE_FRAMEWORK ) $$ d; done ; \
26
+ for d in $( TEST_DIRS) ; do dotnet $@ -f $( DEFAULT_TEST_FRAMEWORK ) $$ d; done ;
24
27
25
28
test :
26
29
@ (for d in $( UNIT_TEST_DIRS) ; do \
27
- dotnet test -f $(DEFAULT_FRAMEWORK ) test/$$ d/$$ d.csproj ; \
30
+ dotnet test -f $(DEFAULT_TEST_FRAMEWORK ) test/$$ d/$$ d.csproj ; \
28
31
done)
You can’t perform that action at this time.
0 commit comments