Skip to content
This repository was archived by the owner on Feb 8, 2022. It is now read-only.

Commit

Permalink
Set up CI with Azure Pipelines (#103)
Browse files Browse the repository at this point in the history
* 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
ctaggart authored Mar 22, 2019
1 parent 70c2685 commit ba983b6
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 9 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ mono: none
dotnet: 2.2.105
script:
- git fetch --unshallow
- dotnet restore Froto.sln
- dotnet build Froto.sln -c Release
- dotnet test Parser.Test/Froto.Parser.Test.fsproj
- dotnet test Serialization.Test/Froto.Serialization.Test.fsproj
- ./build.sh
9 changes: 9 additions & 0 deletions Directory.Build.props
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>
16 changes: 16 additions & 0 deletions azure-pipelines.yml
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
5 changes: 5 additions & 0 deletions build-checksum.sh
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
8 changes: 8 additions & 0 deletions build.sh
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
5 changes: 0 additions & 5 deletions paket.lock

This file was deleted.

0 comments on commit ba983b6

Please sign in to comment.