forked from microsoft/verisol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
51 lines (48 loc) · 2.03 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- checkout: self
submodules: recursive
- script: |
wget https://github.com/Z3Prover/z3/releases/download/z3-4.8.4/z3-4.8.4.d6df51951f4c-x64-ubuntu-14.04.zip
unzip z3*.zip
cp z3-4.8.4.d6df51951f4c-x64-ubuntu-14.04/bin/z3* $(Build.SourcesDirectory)/Binaries/
ln -s $(Build.SourcesDirectory)/Binaries/z3 $(Build.SourcesDirectory)/Binaries/z3.exe
displayName: 'Download z3 and create symbolic link'
- script: |
wget https://github.com/ethereum/solidity/releases/download/v0.5.10/solc-static-linux
chmod +x solc-static-linux
cp solc-static-linux $(Build.SourcesDirectory)/Binaries/
displayName: 'get solc linux'
# do this before all your .NET Core tasks
- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
version: 2.2.203 # https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/tool/dotnet-core-tool-installer?view=azure-devops
- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: build
projects: '**/SolToBoogie.sln'
- script: |
ls -R $(Build.SourcesDirectory)/corral/
ls -R $(Build.SourcesDirectory)/Sources/SolToBoogieTest/
ls -R $(Build.SourcesDirectory)/Binaries
displayName: 'inspect dirs and copy corral and boogie dependencies'
- script: |
dotnet $(Build.SourcesDirectory)/Binaries/VeriSol.dll Test/regressions/DAO-Sim-Buggy.sol Mallory /tryProof /tryRefutation:10 /printTransactionSequence
cat boogie.txt
cat corral.txt
dotnet $(Build.SourcesDirectory)/Binaries/VeriSol.dll Test/regressions/ERC20-simplified.sol ERC20 /tryProof /tryRefutation:10 /printTransactionSequence
cat boogie.txt
displayName: 'Run VeriSol on some examples'
- script: |
dotnet $(Build.SourcesDirectory)/Binaries/SolToBoogieTest.dll $(Build.SourcesDirectory)/Test/
displayName: 'Run regression tests'