From f170fa984d8599b4d2e7c11d9a7452ced350d371 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Thu, 4 Mar 2021 13:43:48 +0100 Subject: [PATCH 1/7] update travis ci --- .gitignore | 37 +++++++++++++++++++++++++++++++++++++ .travis.yml | 31 +++++++++++-------------------- 2 files changed, 48 insertions(+), 20 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0626272 --- /dev/null +++ b/.gitignore @@ -0,0 +1,37 @@ +*.swp +*.*~ +project.lock.json +.DS_Store +*.pyc +nupkg/ + +# Visual Studio Code +.vscode + +# Rider +.idea + +# User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +build/ +bld/ +[Bb]in/ +[Oo]bj/ +[Oo]ut/ +msbuild.log +msbuild.err +msbuild.wrn + +# Visual Studio 2015 +.vs/ \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 8e6a9a5..50a276f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,24 +1,15 @@ -language: csharp - -mono: none - -dotnet: 5.0 - -before_install: -- sudo apt-get -y install libpam0g-dev +os: windows install: - - dotnet restore +- dotnet restore script: - - dotnet build -c Release - -before_deploy: -- dotnet pack -c Release - -deploy: - skip_cleanup: true - provider: script - script: dotnet nuget push ./src/Npam/bin/Release/Npam.*.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json - on: - tags: true +- dotnet build -c Release ./src +- ls ./src/Appwrite/bin/Release + +#deploy: +# skip_cleanup: true +# provider: script +# script: dotnet nuget push ./src/Appwrite/bin/Release/Appwrite.*.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json +# on: +# tags: true From a9648e3ae23acd79b3266bd35a5fa51e6d27adb1 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Thu, 4 Mar 2021 13:56:04 +0100 Subject: [PATCH 2/7] add language property --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 50a276f..7d48ab9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,7 @@ os: windows +language: shell + install: - dotnet restore From 198f115826de52f63a07b8b0af7899308908c370 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Thu, 4 Mar 2021 13:59:15 +0100 Subject: [PATCH 3/7] test --- src/Appwrite/Appwrite.csproj | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Appwrite/Appwrite.csproj b/src/Appwrite/Appwrite.csproj index a235307..a18a033 100644 --- a/src/Appwrite/Appwrite.csproj +++ b/src/Appwrite/Appwrite.csproj @@ -1,7 +1,6 @@ netcoreapp3.1;net461;netstandard2.0; - netstandard2.0 Appwrite 0.1.0 Appwrite Team From 362a125a518c530bdc400708fcaaca76f3a4f4db Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Thu, 4 Mar 2021 14:00:15 +0100 Subject: [PATCH 4/7] test --- .travis.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7d48ab9..4b7832e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,21 @@ -os: windows +language: csharp -language: shell +mono: none + +dotnet: 5.0 + +before_install: +- sudo apt-get -y install libpam0g-dev install: - dotnet restore script: -- dotnet build -c Release ./src -- ls ./src/Appwrite/bin/Release +- dotnet build -c Release + +before_deploy: +- dotnet pack -c Release +- ls ./ #deploy: # skip_cleanup: true From 13dd02ac1491b414a3d11707fcee5b517162459e Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Thu, 4 Mar 2021 14:04:26 +0100 Subject: [PATCH 5/7] test --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4b7832e..19eeabd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,14 +8,14 @@ before_install: - sudo apt-get -y install libpam0g-dev install: -- dotnet restore +- dotnet restore ./src script: -- dotnet build -c Release +- dotnet build -c Release ./src before_deploy: -- dotnet pack -c Release -- ls ./ +- dotnet pack -c Release ./src +- ls ./src/Appwrite/bin/Release/ #deploy: # skip_cleanup: true From 8d6abfd78305c7e24e7a98cde9bae16fb17bf521 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Thu, 4 Mar 2021 14:07:55 +0100 Subject: [PATCH 6/7] finalize --- src/Appwrite/Appwrite.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Appwrite/Appwrite.csproj b/src/Appwrite/Appwrite.csproj index a18a033..a235307 100644 --- a/src/Appwrite/Appwrite.csproj +++ b/src/Appwrite/Appwrite.csproj @@ -1,6 +1,7 @@ netcoreapp3.1;net461;netstandard2.0; + netstandard2.0 Appwrite 0.1.0 Appwrite Team From 88a5f8c0d6122e0f002213bafec3644fba563c14 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Thu, 4 Mar 2021 14:08:46 +0100 Subject: [PATCH 7/7] finalize --- .travis.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 19eeabd..2b0acfc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,11 +15,10 @@ script: before_deploy: - dotnet pack -c Release ./src -- ls ./src/Appwrite/bin/Release/ -#deploy: -# skip_cleanup: true -# provider: script -# script: dotnet nuget push ./src/Appwrite/bin/Release/Appwrite.*.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json -# on: -# tags: true +deploy: + skip_cleanup: true + provider: script + script: dotnet nuget push ./src/Appwrite/bin/Release/Appwrite.*.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json + on: + tags: true