|
1 | 1 | version: 2 |
2 | 2 | jobs: |
3 | 3 | test-debug-netcoreapp2.0: |
4 | | - working_directory: ~/GraphQL.Client/ |
5 | 4 | docker: |
6 | | - - image: microsoft/dotnet:2-sdk |
| 5 | + - image: microsoft/dotnet:2.1-sdk |
7 | 6 | steps: |
8 | 7 | - checkout |
9 | 8 | - run: dotnet test --configuration Debug --framework netcoreapp2.0 ./tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj |
10 | 9 | - 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: |
13 | 11 | docker: |
14 | | - - image: microsoft/dotnet:2-sdk |
| 12 | + - image: microsoft/dotnet:2.1-sdk |
15 | 13 | steps: |
16 | 14 | - checkout |
17 | | - |
18 | | - # Common |
19 | | - - run: dotnet test --configuration Debug --framework netcoreapp2.0 ./tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj |
20 | 15 | - 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 |
24 | 16 | - 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: |
28 | 18 | docker: |
29 | | - - image: microsoft/dotnet:2-sdk |
| 19 | + - image: microsoft/dotnet:2.1-sdk |
30 | 20 | steps: |
31 | 21 | - checkout |
32 | | - |
33 | | - # Common |
34 | 22 | - 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 |
38 | 23 | - 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 |
39 | 30 | - run: dotnet test --configuration Release --framework netcoreapp2.1 ./tests/GraphQL.Client.Tests/GraphQL.Client.Tests.csproj |
40 | 31 | deploy: |
41 | | - working_directory: ~/GraphQL.Client/ |
42 | 32 | docker: |
43 | | - - image: microsoft/dotnet:2-sdk |
| 33 | + - image: microsoft/dotnet:2.1-sdk |
44 | 34 | environment: |
45 | 35 | MY_GET_SOURCE: https://www.myget.org/F/graphql-dotnet/api/v3/index.json |
46 | 36 | steps: |
47 | 37 | - 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 |
57 | 40 | - store_artifacts: |
58 | 41 | path: ./src/GraphQL.Common/bin/Release/GraphQL.Common.2.0.0-alpha.1.nupkg |
59 | 42 | - store_artifacts: |
60 | 43 | path: ./src/GraphQL.Client/bin/Release/GraphQL.Client.2.0.0-alpha.1.nupkg |
61 | | - |
62 | | - # Deploy |
63 | 44 | - deploy: |
64 | 45 | name: MyGet |
65 | 46 | command: | |
66 | 47 | if [ "${CIRCLE_BRANCH}" == "master" ]; then |
67 | 48 | 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 |
68 | 49 | 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 |
69 | 50 | fi |
70 | | -
|
71 | 51 | workflows: |
72 | 52 | version: 2 |
73 | 53 | build-test-and-deploy: |
74 | 54 | jobs: |
75 | 55 | - 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 |
78 | 59 | - deploy: |
79 | 60 | requires: |
80 | 61 | - 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