diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 778fe95..0000000 --- a/.travis.yml +++ /dev/null @@ -1,45 +0,0 @@ -sudo: required -dist: xenial - -# Don't do shallow clones -git: - depth: false - -os: - - osx - - linux - -language: csharp -mono: none -env: - global: - - DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 - - DOTNET_CLI_TELEMETRY_OPTOUT=1 - - COMPlus_UseManagedHttpClientHandler=true - -# minikube-related changes - - CHANGE_MINIKUBE_NONE_USER=true - - MINIKUBE_WANTREPORTERRORPROMPT=false - - MINIKUBE_WANTUPDATENOTIFICATION=false - - KUBECONFIG=/home/travis/.kube/config - -# We need the .NET Core 2.1 SDK to build. Travis doesn't know how to install this yet. -before_install: - - ./install-$TRAVIS_OS_NAME.sh - -script: -# Make NB.GV recognize the branch we're building, by setting environment variables. - - export BUILD_SOURCEBRANCH=${TRAVIS_BRANCH} - - export SYSTEM_TEAMPROJECTID=${TRAVIS_BUILD_ID} - - ./ci.sh - -after_script: - - if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./integration-tests.sh; fi - -# deploy: -# skip_cleanup: true -# provider: script -# script: dotnet nuget push src/KubernetesClient/bin/Release/KubernetesClient.*.nupkg --api-key $NUGET_API_KEY --source $NUGET_SOURCE -# on: -# branch: master -# condition: '"x${NUGET_API_KEY}" != "x" && "x$NUGET_SOURCE" != "x" && "$TRAVIS_OS_NAME" == "linux"' diff --git a/ci.sh b/ci.sh deleted file mode 100755 index 911ad11..0000000 --- a/ci.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env bash - -# Exit on any error -set -e - -# Ensure no compile errors in all projects -find . -name *.csproj -exec dotnet build {} \; - -# Create the NuGet package -cd src/KubernetesClient/ -dotnet pack -c Release -cd ../.. - -# Execute Unit tests -cd tests/KubernetesClient.Tests -dotnet restore -# Save the test results to a file -# Collect code coverage of the KuberetsClient assembly, but exclude the -# auto-generated models from the coverage reports. -dotnet test \ - -l "trx;LogFileName=KubernetesClient.Tests.xunit.trx" \ - /p:CollectCoverage=true \ - /p:Include="[KubernetesClient]*" \ - /p:Exclude="[KubernetesClient]k8s.Models.*" \ - /p:Exclude="[KubernetesClient]k8s.Internal.*" \ - /p:CoverletOutputFormat="opencover" \ - /p:CoverletOutput="KubernetesClient.Tests.opencover.xml" - -cd .. -echo Generating Code Coverage reports -export PATH="$PATH:$HOME/.dotnet/tools" -export DOTNET_ROOT=$(dirname $(realpath $(which dotnet))) # https://github.com/dotnet/cli/issues/9114#issuecomment-401670622 -dotnet tool install --global dotnet-reportgenerator-globaltool --version 4.0.15 -reportgenerator "-reports:**/*.opencover*.xml" "-targetdir:coveragereport" "-reporttypes:HTMLInline;Cobertura" - -ls coveragereport -ls coveragereport/Cobertura.xml - -cd .. diff --git a/install-linux.sh b/install-linux.sh deleted file mode 100755 index 3cf201d..0000000 --- a/install-linux.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh -echo 'Installing .NET Core...' - -curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg -sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg -sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list' -sudo apt-get -qq update -sudo apt-get install -y dotnet-runtime-2.0.9 -sudo apt-get install -y dotnet-runtime-2.1 -sudo apt-get install -y dotnet-sdk-3.1 - -echo 'Installing kubectl' -curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.13.4/bin/linux/amd64/kubectl -chmod +x kubectl -sudo mv kubectl /usr/local/bin/ - -echo 'Installing minikube' -curl -Lo minikube https://storage.googleapis.com/minikube/releases/v1.0.1/minikube-linux-amd64 -chmod +x minikube -sudo mv minikube /usr/local/bin/ - -echo 'Creating the minikube cluster' -sudo minikube start --vm-driver=none --kubernetes-version=v1.13.4 --extra-config=apiserver.authorization-mode=RBAC -sudo chown -R $USER $HOME/.minikube -sudo chgrp -R $USER $HOME/.minikube -sudo chown -R $USER $HOME/.kube -sudo chgrp -R $USER $HOME/.kube - -minikube update-context - -echo 'Waiting for the cluster nodes to be ready' -JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'; \ - until kubectl get nodes -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do sleep 1; done diff --git a/install-osx.sh b/install-osx.sh deleted file mode 100755 index c8c268e..0000000 --- a/install-osx.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -echo 'Installing .NET Core...' - -wget https://download.microsoft.com/download/3/a/3/3a3bda26-560d-4d8e-922e-6f6bc4553a84/dotnet-runtime-2.0.9-osx-x64.pkg -O ~/dotnet-runtime-2.0.9-osx-x64.pkg -wget https://download.visualstudio.microsoft.com/download/pr/9d3edcf8-2da1-42eb-a30f-54d629c8f13f/2e967304f8f3543c7329fd53d292d076/dotnet-runtime-2.1.17-osx-x64.pkg -O ~/dotnet-runtime-2.1.17-osx-x64.pkg -wget https://download.visualstudio.microsoft.com/download/pr/905598d0-17a3-4b42-bf13-c5a69d7aac87/853aff73920dcb013c09a74f05da7f6a/dotnet-sdk-3.1.201-osx-x64.pkg -O ~/dotnet-sdk-3.1.201-osx-x64.pkg - -sudo installer -pkg ~/dotnet-runtime-2.0.9-osx-x64.pkg -target / -sudo installer -pkg ~/dotnet-runtime-2.1.17-osx-x64.pkg -target / -sudo installer -pkg ~/dotnet-sdk-3.1.201-osx-x64.pkg -target / - -# https://github.com/dotnet/cli/issues/2544 -ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/