This repository was archived by the owner on Feb 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up CI with Azure Pipelines (#103)
* Set up CI with Azure Pipelines * add build.sh * +x * add sha256sum bin/*.nupkg to appveyor * use full path for -o & pipelines copying files * indent script more * flattenFolders: true * <Deterministic>true</Deterministic> * <OtherFlags>--deterministic+</OtherFlags> * add artifacts * try artifactType: filePath * what is targetPath * itemPath is nuget * test script error handling with exit 1 * chmod +x * && * && same line * && \ * set -e * set -e works, remove exit * add nuget lock files * locking may need some work * remove nupkg checksums
- Loading branch information
Showing
6 changed files
with
39 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<!-- nuget lock files https://github.com/NuGet/Announcements/issues/28 --> | ||
<!-- <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> | ||
<RestoreLockedMode>true</RestoreLockedMode> --> | ||
<!-- F# compiler flag https://github.com/Microsoft/visualfsharp/pull/6363 --> | ||
<OtherFlags>--deterministic+</OtherFlags> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
pool: | ||
vmImage: Ubuntu-16.04 | ||
steps: | ||
- script: | | ||
set -e | ||
./build.sh | ||
./build-checksum.sh | ||
- task: CopyFiles@2 | ||
inputs: | ||
contents: bin/*.nupkg | ||
flattenFolders: true | ||
targetFolder: $(Build.ArtifactStagingDirectory) | ||
- task: PublishBuildArtifacts@1 | ||
inputs: | ||
pathtoPublish: $(Build.ArtifactStagingDirectory) | ||
artifactName: nuget |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh -e | ||
sha256sum Parser/bin/Release/netstandard2.0/Froto.Parser.dll | ||
sha256sum Serialization/bin/Release/netstandard2.0/Froto.Serialization.dll | ||
# sha256sum Compiler/bin/Release/netcoreapp2.1/Froto.Compiler.dll | ||
# sha256sum bin/*.nupkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh -e | ||
SCRIPTROOT="$(cd "$(dirname "$0")"; pwd)" | ||
dotnet restore Froto.sln | ||
dotnet build Froto.sln -c Release | ||
dotnet test --no-build -c Release Parser.Test/Froto.Parser.Test.fsproj | ||
dotnet test --no-build -c Release Serialization.Test/Froto.Serialization.Test.fsproj | ||
dotnet pack --no-build -c Release Parser/Froto.Parser.fsproj -o $SCRIPTROOT/bin | ||
dotnet pack --no-build -c Release Serialization/Froto.Serialization.fsproj -o $SCRIPTROOT/bin |
This file was deleted.
Oops, something went wrong.