2016-08-01 05:25:37 +00:00
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# Appveyor configuration file for solidity.
|
|
|
|
#
|
|
|
|
# The documentation for solidity is hosted at:
|
|
|
|
#
|
|
|
|
# http://solidity.readthedocs.org
|
|
|
|
#
|
|
|
|
# TODO - Tests currently disabled, because Tests-over-IPC code is using UNIX
|
|
|
|
# sockets unconditionally at the time of writing.
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------------------
|
2016-11-18 23:13:20 +00:00
|
|
|
# This file is part of solidity.
|
2016-08-01 05:25:37 +00:00
|
|
|
#
|
2016-11-18 23:13:20 +00:00
|
|
|
# solidity is free software: you can redistribute it and/or modify
|
2016-08-01 05:25:37 +00:00
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
2016-11-18 23:13:20 +00:00
|
|
|
# solidity is distributed in the hope that it will be useful,
|
2016-08-01 05:25:37 +00:00
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2016-11-18 23:13:20 +00:00
|
|
|
# along with solidity. If not, see <http://www.gnu.org/licenses/>
|
2016-08-01 05:25:37 +00:00
|
|
|
#
|
2016-11-18 23:13:20 +00:00
|
|
|
# (c) 2016 solidity contributors.
|
2016-08-01 05:25:37 +00:00
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
2016-10-20 12:21:51 +00:00
|
|
|
branches:
|
|
|
|
only:
|
2016-11-03 09:48:54 +00:00
|
|
|
- release
|
2016-10-20 12:21:51 +00:00
|
|
|
- develop
|
2016-08-01 05:25:37 +00:00
|
|
|
os: Visual Studio 2015
|
|
|
|
configuration:
|
|
|
|
- RelWithDebInfo
|
2017-03-22 19:19:57 +00:00
|
|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e6+qmi3ydQU9g6p8psZgaE3TuMsyzX3k4C30nC/3gWT+zl253NjZwfbzIdHu5LWNDY9kEHtKzLP
|
2016-08-10 19:43:09 +00:00
|
|
|
# NB: Appveyor cache is disabled, because it is proving very unreliable.
|
|
|
|
# We can re-enable it when we find a way to mitigate the unreliability
|
|
|
|
# issues. Have automated builds be reliable is the more important thing.
|
|
|
|
#cache: build
|
2016-08-31 14:29:10 +00:00
|
|
|
#
|
|
|
|
# In case we'd need a RDP detail to login into appveyor
|
|
|
|
#init:
|
|
|
|
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
2016-08-01 05:25:37 +00:00
|
|
|
install:
|
2017-10-08 23:57:01 +00:00
|
|
|
- ps: if ($env:priv_key) {
|
|
|
|
$fileContent = "-----BEGIN RSA PRIVATE KEY-----`n";
|
|
|
|
$fileContent += $env:priv_key.Replace(' ', "`n");
|
|
|
|
$fileContent += "`n-----END RSA PRIVATE KEY-----`n";
|
|
|
|
Set-Content c:\users\appveyor\.ssh\id_rsa $fileContent
|
|
|
|
}
|
2016-08-01 05:25:37 +00:00
|
|
|
- git submodule update --init --recursive
|
2017-03-22 19:19:57 +00:00
|
|
|
- ps: $prerelease = "nightly."
|
|
|
|
- ps: $prerelease += Get-Date -format "yyyy.M.d"
|
2017-05-04 15:01:47 +00:00
|
|
|
- ps: if($env:appveyor_repo_branch -eq 'release') { Set-Content prerelease.txt $null } else { Set-Content prerelease.txt $prerelease }
|
2016-08-01 05:25:37 +00:00
|
|
|
- scripts/install_deps.bat
|
|
|
|
- set ETHEREUM_DEPS_PATH=%APPVEYOR_BUILD_FOLDER%\deps\install
|
|
|
|
before_build:
|
|
|
|
- if not exist build mkdir build
|
|
|
|
- cd build
|
2016-08-03 06:46:49 +00:00
|
|
|
- cmake -G "Visual Studio 14 2015 Win64" .. -DTESTS=On
|
2016-08-01 05:25:37 +00:00
|
|
|
build_script:
|
|
|
|
- msbuild solidity.sln /p:Configuration=%CONFIGURATION% /m:%NUMBER_OF_PROCESSORS% /v:minimal
|
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
|
|
|
- scripts\release.bat %CONFIGURATION%
|
2017-06-09 15:17:41 +00:00
|
|
|
- ps: $bytecodedir = git show -s --format="%cd-%H" --date=short
|
2016-08-01 05:25:37 +00:00
|
|
|
|
2016-08-31 14:29:10 +00:00
|
|
|
test_script:
|
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%\build\test\%CONFIGURATION%
|
2017-10-04 10:48:23 +00:00
|
|
|
- soltest.exe --show-progress -- --no-ipc --no-smt
|
2017-10-19 21:41:56 +00:00
|
|
|
# Skip bytecode compare if private key is not available
|
2017-10-23 20:02:42 +00:00
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
2017-10-19 21:41:56 +00:00
|
|
|
- ps: if ($env:priv_key) {
|
|
|
|
scripts\bytecodecompare\storebytecode.bat $Env:CONFIGURATION $bytecodedir
|
|
|
|
}
|
2017-10-23 20:08:07 +00:00
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%\build\test\%CONFIGURATION%
|
2016-08-03 06:36:14 +00:00
|
|
|
|
2016-08-01 05:25:37 +00:00
|
|
|
artifacts:
|
2016-08-10 19:43:09 +00:00
|
|
|
- path: solidity-windows.zip
|
|
|
|
name: solidity-windows-zip
|
2016-08-01 05:25:37 +00:00
|
|
|
|
2016-08-10 19:43:09 +00:00
|
|
|
# This is the deploy target for Windows which generates ZIPs per commit.
|
|
|
|
# We are in agreement that generating ZIPs per commit for the develop
|
|
|
|
# branch is probably just noise, so we only run this deployment target
|
|
|
|
# on 'release'.
|
2016-08-11 20:36:49 +00:00
|
|
|
#
|
|
|
|
# See https://www.appveyor.com/docs/deployment/github for information
|
|
|
|
# on GitHub Releases in Appveyor.
|
|
|
|
#
|
|
|
|
# You need to generate a GitHub personal access token for Appveyor
|
|
|
|
# See https://github.com/settings/tokens for more information on that.
|
|
|
|
# The token you generate there (in an encrypted form) is what is
|
|
|
|
# passed to this deployment target in the 'auth_token' parameter
|
|
|
|
# below.
|
2016-08-10 19:43:09 +00:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: GitHub
|
|
|
|
auth_token:
|
2016-08-12 10:10:44 +00:00
|
|
|
secure: HPjiugbDSCsEFTphj/qwHuSw80/BV1xWoSvj95CPmtb16Ukh2VQbLVB7iFtZSans
|
2016-08-10 19:43:09 +00:00
|
|
|
artifact: solidity-windows-zip
|
|
|
|
on:
|
2016-08-15 23:01:19 +00:00
|
|
|
branch: release
|
2016-11-03 09:48:54 +00:00
|
|
|
appveyor_repo_tag: true
|
2016-08-15 20:38:18 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
- provider: GitHubPullRequest
|
|
|
|
on_build_success: false
|
|
|
|
on_build_failure: false
|
|
|
|
on_build_status_changed: false
|