2018-03-31 07:32:14 +02:00
|
|
|
sudo: required
|
2019-03-22 00:26:17 +01:00
|
|
|
dist: xenial
|
2018-03-31 07:32:14 +02:00
|
|
|
|
2018-05-01 00:08:09 +02:00
|
|
|
# Don't do shallow clones
|
|
|
|
|
git:
|
|
|
|
|
depth: false
|
|
|
|
|
|
2018-03-31 07:32:14 +02:00
|
|
|
os:
|
|
|
|
|
- osx
|
|
|
|
|
- linux
|
|
|
|
|
|
2017-07-16 22:09:26 +02:00
|
|
|
language: csharp
|
2018-03-31 07:32:14 +02:00
|
|
|
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
|
|
|
|
|
|
2018-06-01 07:57:10 +02:00
|
|
|
# We need the .NET Core 2.1 SDK to build. Travis doesn't know how to install this yet.
|
2018-03-31 07:32:14 +02:00
|
|
|
before_install:
|
|
|
|
|
- ./install-$TRAVIS_OS_NAME.sh
|
2017-07-16 22:09:26 +02:00
|
|
|
|
|
|
|
|
script:
|
2019-03-20 16:49:02 +01:00
|
|
|
# Make NB.GV recognize the branch we're building, by setting environment variables.
|
|
|
|
|
- export BUILD_SOURCEBRANCH=${TRAVIS_BRANCH}
|
|
|
|
|
- export SYSTEM_TEAMPROJECTID=${TRAVIS_BUILD_ID}
|
2017-09-28 09:44:08 -07:00
|
|
|
- ./ci.sh
|
2018-03-31 07:32:14 +02:00
|
|
|
|
|
|
|
|
after_script:
|
2018-05-07 20:53:15 +02:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./integration-tests.sh; fi
|
|
|
|
|
|
2020-03-13 21:58:34 -07:00
|
|
|
# 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"'
|