-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #166 from boogie-org/netcore
Improvements of the .NET Core build
- Loading branch information
Showing
7 changed files
with
123 additions
and
117 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 |
---|---|---|
@@ -1,27 +1,45 @@ | ||
# vim: set sw=2 ts=2 softtabstop=2 expandtab: | ||
language: csharp | ||
dist: trusty | ||
dist: bionic | ||
sudo: true | ||
solution: "Source/Boogie.sln" | ||
dotnet: 3.1 | ||
mono: none | ||
git: | ||
depth: false | ||
env: | ||
global: | ||
- SOLUTION=Source/Boogie-NetCore.sln | ||
- Z3URL=https://github.com/Z3Prover/z3/releases/download/z3-4.8.4/z3-4.8.4.d6df51951f4c-x64-ubuntu-14.04.zip | ||
matrix: | ||
- BOOGIE_CONFIG=Debug | ||
- BOOGIE_CONFIG=Release | ||
- CONFIGURATION=Debug | ||
- CONFIGURATION=Release | ||
install: | ||
# Download a Z3 release | ||
- wget ${Z3URL} | ||
- unzip z3*.zip | ||
# NuGet is a little flakey in legacy TravisCI, use travis_retry command to retry the command if it fails | ||
- travis_retry nuget restore ${TRAVIS_SOLUTION} | ||
- travis_retry nuget install -Version 3.10.0 NUnit.Console -OutputDirectory Source/packages/ | ||
- export PATH="$(find $PWD/z3* -name bin -type d):$PATH" | ||
# Install needed python tools | ||
- sudo pip install lit OutputCheck pyyaml | ||
script: | ||
- msbuild /p:Configuration=${BOOGIE_CONFIG} ${TRAVIS_SOLUTION} | ||
# Run unit tests | ||
- python Source/UnitTests/run-unittests.py ${BOOGIE_CONFIG} | ||
# Run driver tests | ||
- ln -s $(find $PWD/z3* -name z3 -type f) Binaries/z3.exe | ||
- lit -v Test/ | ||
- dotnet build -c ${CONFIGURATION} ${SOLUTION} | ||
- dotnet test --no-build -c ${CONFIGURATION} ${SOLUTION} | ||
- lit -v -D dotnet -D configuration=${CONFIGURATION} Test | ||
deploy: | ||
- provider: script | ||
script: | ||
- dotnet nuget push Source/BoogieDriver/bin/${CONFIGURATION}/Boogie*.nupkg -k ${NUGET_API_KEY} -s https://api.nuget.org/v3/index.json | ||
skip_cleanup: true | ||
on: | ||
branch: master | ||
tags: true | ||
condition: ${CONFIGURATION}=Release | ||
- provider: releases | ||
api_key: | ||
secure: ZjKhOiIpC6R+Xfp1iJX/1a2DD1o+tYhUefZDqRjUfM4rDZqzvOBvY7mA/1BcqNs4gXJIk3p11Kud72cPSSS8iW2EVlRm2UlfdVOf2wmGys/TILvHNDWUoVFSxhVgxbzMVULp6fIrqDypaZ0PAYZVg2loLkVI5AZ/P35ZRVaa9oE= | ||
file_glob: true | ||
file: Source/BoogieDriver/bin/${CONFIGURATION}/Boogie*.nupkg | ||
skip_cleanup: true | ||
on: | ||
branch: master | ||
tags: true | ||
condition: ${CONFIGURATION}=Release |
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
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
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