From e13d06a20caed4635d99240b5a4f65cdf30a9651 Mon Sep 17 00:00:00 2001 From: Raul Hidalgo Caballero Date: Thu, 13 Sep 2018 10:57:59 +0200 Subject: [PATCH 1/9] del working dir --- .circleci/config.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b4c4f50d..82c98be8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,7 +1,6 @@ version: 2 jobs: test-debug-netcoreapp2.0: - working_directory: ~/GraphQL.Client/ docker: - image: microsoft/dotnet:2-sdk steps: From 87524af3f7222433a6ee8a50a850aa07dfb97949 Mon Sep 17 00:00:00 2001 From: Raul Hidalgo Caballero Date: Thu, 13 Sep 2018 11:01:18 +0200 Subject: [PATCH 2/9] del --- .circleci/config.yml | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 82c98be8..10306b6b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,34 +7,26 @@ jobs: - checkout - run: dotnet test --configuration Debug --framework netcoreapp2.0 ./tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj - run: dotnet test --configuration Debug --framework netcoreapp2.0 ./tests/GraphQL.Client.Tests/GraphQL.Client.Tests.csproj - test-debug: - working_directory: ~/GraphQL.Client/ + test-debug-netcoreapp2.1: docker: - image: microsoft/dotnet:2-sdk steps: - checkout - - # Common - - run: dotnet test --configuration Debug --framework netcoreapp2.0 ./tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj - run: dotnet test --configuration Debug --framework netcoreapp2.1 ./tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj - - # Client - - run: dotnet test --configuration Debug --framework netcoreapp2.0 ./tests/GraphQL.Client.Tests/GraphQL.Client.Tests.csproj - run: dotnet test --configuration Debug --framework netcoreapp2.1 ./tests/GraphQL.Client.Tests/GraphQL.Client.Tests.csproj - - test-release: - working_directory: ~/GraphQL.Client/ + test-release-netcoreapp2.0: docker: - image: microsoft/dotnet:2-sdk steps: - checkout - - # Common - run: dotnet test --configuration Release --framework netcoreapp2.0 ./tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj - - run: dotnet test --configuration Release --framework netcoreapp2.1 ./tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj - - # Client - run: dotnet test --configuration Release --framework netcoreapp2.0 ./tests/GraphQL.Client.Tests/GraphQL.Client.Tests.csproj + test-release-netcoreapp2.1: + docker: + - image: microsoft/dotnet:2-sdk + steps: + - checkout + - run: dotnet test --configuration Release --framework netcoreapp2.1 ./tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj - run: dotnet test --configuration Release --framework netcoreapp2.1 ./tests/GraphQL.Client.Tests/GraphQL.Client.Tests.csproj deploy: working_directory: ~/GraphQL.Client/ @@ -72,10 +64,12 @@ workflows: build-test-and-deploy: jobs: - test-debug-netcoreapp2.0 - - test-debug - - test-release + - test-debug-netcoreapp2.1 + - test-release-netcoreapp2.0 + - test-release-netcoreapp2.1 - deploy: requires: - test-debug-netcoreapp2.0 - - test-debug - - test-release + - test-debug-netcoreapp2.1 + - test-release-netcoreapp2.0 + - test-release-netcoreapp2.1 From 49cb7e1faffa281569fdbad6afb133040f79abff Mon Sep 17 00:00:00 2001 From: Raul Hidalgo Caballero Date: Thu, 13 Sep 2018 11:03:06 +0200 Subject: [PATCH 3/9] simplificate --- .circleci/config.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 10306b6b..2922cf5b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -29,28 +29,17 @@ jobs: - run: dotnet test --configuration Release --framework netcoreapp2.1 ./tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj - run: dotnet test --configuration Release --framework netcoreapp2.1 ./tests/GraphQL.Client.Tests/GraphQL.Client.Tests.csproj deploy: - working_directory: ~/GraphQL.Client/ docker: - image: microsoft/dotnet:2-sdk environment: MY_GET_SOURCE: https://www.myget.org/F/graphql-dotnet/api/v3/index.json steps: - checkout - - run: dotnet restore - - run: dotnet build - - run: dotnet pack - - run: dotnet build --configuration Release ./src/GraphQL.Common/GraphQL.Common.csproj - - run: dotnet pack --configuration Release ./src/GraphQL.Common/GraphQL.Common.csproj - - run: dotnet build --configuration Release ./src/GraphQL.Client/GraphQL.Client.csproj - - run: dotnet pack --configuration Release ./src/GraphQL.Client/GraphQL.Client.csproj - - # Store Artifacts + - run: dotnet pack --configuration Release - store_artifacts: path: ./src/GraphQL.Common/bin/Release/GraphQL.Common.2.0.0-alpha.1.nupkg - store_artifacts: path: ./src/GraphQL.Client/bin/Release/GraphQL.Client.2.0.0-alpha.1.nupkg - - # Deploy - deploy: name: MyGet command: | @@ -58,7 +47,6 @@ jobs: 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 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 fi - workflows: version: 2 build-test-and-deploy: From 21aec6cc7ba703866f0372b2ac3c407333864029 Mon Sep 17 00:00:00 2001 From: Raul Hidalgo Caballero Date: Thu, 13 Sep 2018 11:04:56 +0200 Subject: [PATCH 4/9] 2.1-sdk --- .circleci/config.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2922cf5b..cd475d21 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,35 +2,35 @@ version: 2 jobs: test-debug-netcoreapp2.0: docker: - - image: microsoft/dotnet:2-sdk + - image: microsoft/dotnet:2.1-sdk steps: - checkout - run: dotnet test --configuration Debug --framework netcoreapp2.0 ./tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj - run: dotnet test --configuration Debug --framework netcoreapp2.0 ./tests/GraphQL.Client.Tests/GraphQL.Client.Tests.csproj test-debug-netcoreapp2.1: docker: - - image: microsoft/dotnet:2-sdk + - image: microsoft/dotnet:2.1-sdk steps: - checkout - run: dotnet test --configuration Debug --framework netcoreapp2.1 ./tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj - run: dotnet test --configuration Debug --framework netcoreapp2.1 ./tests/GraphQL.Client.Tests/GraphQL.Client.Tests.csproj test-release-netcoreapp2.0: docker: - - image: microsoft/dotnet:2-sdk + - image: microsoft/dotnet:2.1-sdk steps: - checkout - run: dotnet test --configuration Release --framework netcoreapp2.0 ./tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj - run: dotnet test --configuration Release --framework netcoreapp2.0 ./tests/GraphQL.Client.Tests/GraphQL.Client.Tests.csproj test-release-netcoreapp2.1: docker: - - image: microsoft/dotnet:2-sdk + - image: microsoft/dotnet:2.1-sdk steps: - checkout - run: dotnet test --configuration Release --framework netcoreapp2.1 ./tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj - run: dotnet test --configuration Release --framework netcoreapp2.1 ./tests/GraphQL.Client.Tests/GraphQL.Client.Tests.csproj deploy: docker: - - image: microsoft/dotnet:2-sdk + - image: microsoft/dotnet:2.1-sdk environment: MY_GET_SOURCE: https://www.myget.org/F/graphql-dotnet/api/v3/index.json steps: From 5f3408bf72c62eea1579804fd5e9da485101f9bb Mon Sep 17 00:00:00 2001 From: Raul Hidalgo Caballero Date: Thu, 13 Sep 2018 11:06:03 +0200 Subject: [PATCH 5/9] 1.1-sdk --- .circleci/config.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index cd475d21..70280f12 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,5 +1,12 @@ version: 2 jobs: + test-debug-netcoreapp1.0: + docker: + - image: microsoft/dotnet:1.1-sdk + steps: + - checkout + - run: dotnet test --configuration Debug --framework netcoreapp1.0 ./tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj + - run: dotnet test --configuration Debug --framework netcoreapp1.0 ./tests/GraphQL.Client.Tests/GraphQL.Client.Tests.csproj test-debug-netcoreapp2.0: docker: - image: microsoft/dotnet:2.1-sdk @@ -51,12 +58,14 @@ workflows: version: 2 build-test-and-deploy: jobs: + - test-debug-netcoreapp1.0 - test-debug-netcoreapp2.0 - test-debug-netcoreapp2.1 - test-release-netcoreapp2.0 - test-release-netcoreapp2.1 - deploy: requires: + - test-debug-netcoreapp1.0 - test-debug-netcoreapp2.0 - test-debug-netcoreapp2.1 - test-release-netcoreapp2.0 From 919749c02a2dc948a2240c2bdb71d785aa56b960 Mon Sep 17 00:00:00 2001 From: Raul Hidalgo Caballero Date: Thu, 13 Sep 2018 11:06:39 +0200 Subject: [PATCH 6/9] build --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 70280f12..4cf71acc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -42,6 +42,7 @@ jobs: MY_GET_SOURCE: https://www.myget.org/F/graphql-dotnet/api/v3/index.json steps: - checkout + - run: dotnet build --configuration Release - run: dotnet pack --configuration Release - store_artifacts: path: ./src/GraphQL.Common/bin/Release/GraphQL.Common.2.0.0-alpha.1.nupkg From 9bb509f4dd923549e92879eb2b876f1c191e07b1 Mon Sep 17 00:00:00 2001 From: Raul Hidalgo Caballero Date: Thu, 13 Sep 2018 11:08:22 +0200 Subject: [PATCH 7/9] dotnet restore --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4cf71acc..1a8a8432 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,6 +5,7 @@ jobs: - image: microsoft/dotnet:1.1-sdk steps: - checkout + - run: dotnet restore - run: dotnet test --configuration Debug --framework netcoreapp1.0 ./tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj - run: dotnet test --configuration Debug --framework netcoreapp1.0 ./tests/GraphQL.Client.Tests/GraphQL.Client.Tests.csproj test-debug-netcoreapp2.0: From b1bf9d677de9174424af90b107f05fc260c6af0d Mon Sep 17 00:00:00 2001 From: Raul Hidalgo Caballero Date: Thu, 13 Sep 2018 11:12:16 +0200 Subject: [PATCH 8/9] build --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1a8a8432..a7b23849 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,6 +6,7 @@ jobs: steps: - checkout - run: dotnet restore + - run: dotnet build - run: dotnet test --configuration Debug --framework netcoreapp1.0 ./tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj - run: dotnet test --configuration Debug --framework netcoreapp1.0 ./tests/GraphQL.Client.Tests/GraphQL.Client.Tests.csproj test-debug-netcoreapp2.0: From c84c20db77a2eded63c3ae37fb8cbb010d1c5fc3 Mon Sep 17 00:00:00 2001 From: Raul Hidalgo Caballero Date: Thu, 13 Sep 2018 11:15:26 +0200 Subject: [PATCH 9/9] del --- .circleci/config.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a7b23849..71673626 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,14 +1,5 @@ version: 2 jobs: - test-debug-netcoreapp1.0: - docker: - - image: microsoft/dotnet:1.1-sdk - steps: - - checkout - - run: dotnet restore - - run: dotnet build - - run: dotnet test --configuration Debug --framework netcoreapp1.0 ./tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj - - run: dotnet test --configuration Debug --framework netcoreapp1.0 ./tests/GraphQL.Client.Tests/GraphQL.Client.Tests.csproj test-debug-netcoreapp2.0: docker: - image: microsoft/dotnet:2.1-sdk @@ -61,14 +52,12 @@ workflows: version: 2 build-test-and-deploy: jobs: - - test-debug-netcoreapp1.0 - test-debug-netcoreapp2.0 - test-debug-netcoreapp2.1 - test-release-netcoreapp2.0 - test-release-netcoreapp2.1 - deploy: requires: - - test-debug-netcoreapp1.0 - test-debug-netcoreapp2.0 - test-debug-netcoreapp2.1 - test-release-netcoreapp2.0