Skip to content

Commit 9f97efc

Browse files
author
Raul Hidalgo Caballero
authored
CircleCI fixs (#66)
* del working dir * del * simplificate * 2.1-sdk * 1.1-sdk * build * dotnet restore * build * del
1 parent 2a1c420 commit 9f97efc

File tree

1 file changed

+20
-38
lines changed

1 file changed

+20
-38
lines changed

.circleci/config.yml

Lines changed: 20 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,64 @@
11
version: 2
22
jobs:
33
test-debug-netcoreapp2.0:
4-
working_directory: ~/GraphQL.Client/
54
docker:
6-
- image: microsoft/dotnet:2-sdk
5+
- image: microsoft/dotnet:2.1-sdk
76
steps:
87
- checkout
98
- run: dotnet test --configuration Debug --framework netcoreapp2.0 ./tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj
109
- run: dotnet test --configuration Debug --framework netcoreapp2.0 ./tests/GraphQL.Client.Tests/GraphQL.Client.Tests.csproj
11-
test-debug:
12-
working_directory: ~/GraphQL.Client/
10+
test-debug-netcoreapp2.1:
1311
docker:
14-
- image: microsoft/dotnet:2-sdk
12+
- image: microsoft/dotnet:2.1-sdk
1513
steps:
1614
- checkout
17-
18-
# Common
19-
- run: dotnet test --configuration Debug --framework netcoreapp2.0 ./tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj
2015
- run: dotnet test --configuration Debug --framework netcoreapp2.1 ./tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj
21-
22-
# Client
23-
- run: dotnet test --configuration Debug --framework netcoreapp2.0 ./tests/GraphQL.Client.Tests/GraphQL.Client.Tests.csproj
2416
- run: dotnet test --configuration Debug --framework netcoreapp2.1 ./tests/GraphQL.Client.Tests/GraphQL.Client.Tests.csproj
25-
26-
test-release:
27-
working_directory: ~/GraphQL.Client/
17+
test-release-netcoreapp2.0:
2818
docker:
29-
- image: microsoft/dotnet:2-sdk
19+
- image: microsoft/dotnet:2.1-sdk
3020
steps:
3121
- checkout
32-
33-
# Common
3422
- run: dotnet test --configuration Release --framework netcoreapp2.0 ./tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj
35-
- run: dotnet test --configuration Release --framework netcoreapp2.1 ./tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj
36-
37-
# Client
3823
- run: dotnet test --configuration Release --framework netcoreapp2.0 ./tests/GraphQL.Client.Tests/GraphQL.Client.Tests.csproj
24+
test-release-netcoreapp2.1:
25+
docker:
26+
- image: microsoft/dotnet:2.1-sdk
27+
steps:
28+
- checkout
29+
- run: dotnet test --configuration Release --framework netcoreapp2.1 ./tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj
3930
- run: dotnet test --configuration Release --framework netcoreapp2.1 ./tests/GraphQL.Client.Tests/GraphQL.Client.Tests.csproj
4031
deploy:
41-
working_directory: ~/GraphQL.Client/
4232
docker:
43-
- image: microsoft/dotnet:2-sdk
33+
- image: microsoft/dotnet:2.1-sdk
4434
environment:
4535
MY_GET_SOURCE: https://www.myget.org/F/graphql-dotnet/api/v3/index.json
4636
steps:
4737
- checkout
48-
- run: dotnet restore
49-
- run: dotnet build
50-
- run: dotnet pack
51-
- run: dotnet build --configuration Release ./src/GraphQL.Common/GraphQL.Common.csproj
52-
- run: dotnet pack --configuration Release ./src/GraphQL.Common/GraphQL.Common.csproj
53-
- run: dotnet build --configuration Release ./src/GraphQL.Client/GraphQL.Client.csproj
54-
- run: dotnet pack --configuration Release ./src/GraphQL.Client/GraphQL.Client.csproj
55-
56-
# Store Artifacts
38+
- run: dotnet build --configuration Release
39+
- run: dotnet pack --configuration Release
5740
- store_artifacts:
5841
path: ./src/GraphQL.Common/bin/Release/GraphQL.Common.2.0.0-alpha.1.nupkg
5942
- store_artifacts:
6043
path: ./src/GraphQL.Client/bin/Release/GraphQL.Client.2.0.0-alpha.1.nupkg
61-
62-
# Deploy
6344
- deploy:
6445
name: MyGet
6546
command: |
6647
if [ "${CIRCLE_BRANCH}" == "master" ]; then
6748
dotnet nuget push ./src/GraphQL.Common/bin/Release/GraphQL.Common.2.0.0-alpha.1.nupkg --api-key $MY_GET_API_KEY --source $MY_GET_SOURCE
6849
dotnet nuget push ./src/GraphQL.Client/bin/Release/GraphQL.Client.2.0.0-alpha.1.nupkg --api-key $MY_GET_API_KEY --source $MY_GET_SOURCE
6950
fi
70-
7151
workflows:
7252
version: 2
7353
build-test-and-deploy:
7454
jobs:
7555
- test-debug-netcoreapp2.0
76-
- test-debug
77-
- test-release
56+
- test-debug-netcoreapp2.1
57+
- test-release-netcoreapp2.0
58+
- test-release-netcoreapp2.1
7859
- deploy:
7960
requires:
8061
- test-debug-netcoreapp2.0
81-
- test-debug
82-
- test-release
62+
- test-debug-netcoreapp2.1
63+
- test-release-netcoreapp2.0
64+
- test-release-netcoreapp2.1

0 commit comments

Comments
 (0)