Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
158 changes: 158 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results

[Dd]ebug/
[Rr]elease/
x64/
[Bb]in/
[Oo]bj/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.log
*.svclog
*.scc

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# Click-Once directory
publish/

# Publish Web Output
*.Publish.xml
*.pubxml
*.azurePubxml

# NuGet Packages Directory
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
packages/
## TODO: If the tool you use requires repositories.config, also uncomment the next line
!packages/repositories.config

# Windows Azure Build Output
csx/
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
![Ss]tyle[Cc]op.targets
~$*
*~
*.dbmdl
*.[Pp]ublish.xml

*.publishsettings

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
App_Data/*.mdf
App_Data/*.ldf

# =========================
# Windows detritus
# =========================

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Mac desktop service store files
.DS_Store

_NCrunch*

# =================================
# Common IntelliJ Platform excludes
# =================================

# User specific
**/.idea/**/workspace.xml
**/.idea/**/tasks.xml
**/.idea/shelf/*
**/.idea/dictionaries
**/.idea/httpRequests/

# Sensitive or high-churn files
**/.idea/**/dataSources/
**/.idea/**/dataSources.ids
**/.idea/**/dataSources.xml
**/.idea/**/dataSources.local.xml
**/.idea/**/sqlDataSources.xml
**/.idea/**/dynamic.xml

# Rider
# Rider auto-generates .iml files, and contentModel.xml
**/.idea/**/*.iml
**/.idea/**/contentModel.xml
**/.idea/**/modules.xml
13 changes: 13 additions & 0 deletions .idea/.idea.ExampleContract/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/.idea.ExampleContract/.idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/.idea.ExampleContract/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/.idea.ExampleContract/.idea/indexLayout.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/.idea.ExampleContract/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/.idea.examples.dir/.idea/indexLayout.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/.idea.examples.dir/.idea/projectSettingsUpdater.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/.idea.examples.dir/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions CodeCoverage.runsettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- File name extension must be .runsettings -->
<RunSettings>
<DataCollectionRunSettings>
<DataCollectors>
<DataCollector friendlyName="XPlat code coverage">
<Configuration>
<Format>cobertura</Format>
<Exclude>[xunit.*]*,[*Tests]*</Exclude> <!-- [Assembly-Filter]Type-Filter -->
<ExcludeByFile>**/test/**/*.cs</ExcludeByFile>
<ExcludeByAttribute>Obsolete,GeneratedCodeAttribute</ExcludeByAttribute>
<SingleHit>false</SingleHit>
</Configuration>
</DataCollector>
</DataCollectors>
</DataCollectionRunSettings>
</RunSettings>
37 changes: 37 additions & 0 deletions ExampleContract.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "basics", "basics", "{0B1211B7-ADC5-4934-9573-D19E429C7178}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "timelock-contract", "timelock-contract", "{2F26B697-A6FE-4A9F-A7DB-756E364B7BD8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AElf.Contracts.TimelockContract", "basics\timelock-contract\src\AElf.Contracts.TimelockContract.csproj", "{ECC2BE86-A75D-4526-B10B-A12915EEEEFC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AElf.Contracts.TimelockContract.Tests", "basics\timelock-contract\test\AElf.Contracts.TimelockContract.Tests.csproj", "{FFFB1BAF-52A1-4773-83BE-2BA1ED34D745}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{ECC2BE86-A75D-4526-B10B-A12915EEEEFC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{ECC2BE86-A75D-4526-B10B-A12915EEEEFC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{ECC2BE86-A75D-4526-B10B-A12915EEEEFC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ECC2BE86-A75D-4526-B10B-A12915EEEEFC}.Release|Any CPU.Build.0 = Release|Any CPU
{FFFB1BAF-52A1-4773-83BE-2BA1ED34D745}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FFFB1BAF-52A1-4773-83BE-2BA1ED34D745}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FFFB1BAF-52A1-4773-83BE-2BA1ED34D745}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FFFB1BAF-52A1-4773-83BE-2BA1ED34D745}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{2F26B697-A6FE-4A9F-A7DB-756E364B7BD8} = {0B1211B7-ADC5-4934-9573-D19E429C7178}
{ECC2BE86-A75D-4526-B10B-A12915EEEEFC} = {2F26B697-A6FE-4A9F-A7DB-756E364B7BD8}
{FFFB1BAF-52A1-4773-83BE-2BA1ED34D745} = {2F26B697-A6FE-4A9F-A7DB-756E364B7BD8}
EndGlobalSection
EndGlobal
73 changes: 73 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
jobs:

# All tasks on Windows....
#- job: build_all_windows
# displayName: Build all tasks (Windows)
# pool:
# vmImage: windows-latest
# variables:
# CI_TEST: true
# steps:
# - task: UseDotNet@2
# displayName: 'Install .NET Core SDK'
# inputs:
# version: 3.1.102
#
# - task: BatchScript@1
# displayName: 'Download AElf build tools'
# inputs:
# filename: 'scripts/download_binary.bat'
# - script: PowerShell.exe -file scripts/install.ps1
# displayName: 'Install protobuf'
# - script: choco install unzip
# displayName: 'Install unzip'
# - powershell: Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# - script: PowerShell.exe -file build.ps1 -target=Run-Unit-Tests
# displayName: 'Build and Test'
# All tasks on Linux
- job: build_all_linux
displayName: Build all tasks (Linux)
timeoutInMinutes: 120
pool:
vmImage: ubuntu-latest
variables:
CI_TEST: true
steps:
- task: UseDotNet@2
displayName: 'Install .NET Core SDK'
inputs:
version: 7.0.x
- script: bash build.sh --target=Test-with-Codecov
displayName: 'Build and Test'
- task: PublishTestResults@2
condition: always()
inputs:
testRunner: VSTest
testResultsFiles: '**/*.trx'
- task: reportgenerator@5
displayName: ReportGenerator
inputs:
reports: '$(Build.SourcesDirectory)/**/test/TestResults/*/coverage.cobertura.xml'
targetdir: '$(Build.SourcesDirectory)/CodeCoverage'
reporttypes: 'Cobertura'
assemblyfilters: '-xunit*'
- script: bash build.sh --target=Upload-Coverage-Azure
displayName: 'Upload data to Codecov'
# All tasks on macOS
#- job: build_all_darwin
# displayName: Build all tasks (macOS)
# pool:
# vmImage: macos-latest
# variables:
# CI_TEST: true
# steps:
# - task: UseDotNet@2
# displayName: 'Install .NET Core SDK'
# inputs:
# version: 3.1.102
# - script: bash scripts/download_binary.sh
# displayName: 'Download AElf build tools'
# - script: bash scripts/install.sh
# displayName: 'Install protobuf'
# - script: bash build.sh -target=Run-Unit-Tests
# displayName: 'Build and Test'
13 changes: 13 additions & 0 deletions basics/.idea/.idea.basics.dir/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions basics/.idea/.idea.basics.dir/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions basics/.idea/.idea.basics.dir/.idea/indexLayout.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions basics/.idea/.idea.basics.dir/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading