coreutils/appveyor.yml

59 lines
2.2 KiB
YAML
Raw Normal View History

2017-08-04 17:57:59 +00:00
os: Visual Studio 2015
2015-12-24 03:53:27 +00:00
environment:
matrix:
2016-05-21 01:16:27 +00:00
- TARGET: x86_64-pc-windows-msvc
2017-08-04 17:57:59 +00:00
MSYS_BITS: 64
TOOLCHAIN: msvc
PLATFORM: x86_64
2016-05-21 01:16:27 +00:00
- TARGET: i686-pc-windows-msvc
2017-08-04 17:57:59 +00:00
MSYS_BITS: 32
TOOLCHAIN: msvc
PLATFORM: i686
2015-12-24 03:53:27 +00:00
- TARGET: i686-pc-windows-gnu
2016-07-29 11:50:59 +00:00
MINGW_URL: https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.2/threads-win32/dwarf/i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z/download
MINGW_ARCHIVE: i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z
MINGW_DIR: mingw32
2016-08-30 00:18:52 +00:00
DIR_TEMP_MINGW: C:\cached\mingw
2016-07-29 11:50:59 +00:00
- TARGET: x86_64-pc-windows-gnu
MSYS_BITS: 64
2015-12-24 03:53:27 +00:00
install:
2016-07-29 11:50:59 +00:00
- SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin;C:\MinGW\bin
# Use the system msys if we can
- if defined MSYS_BITS set PATH=C:\msys64\mingw%MSYS_BITS%\bin;C:\msys64\usr\bin;%PATH%
2016-08-30 00:18:52 +00:00
- ps: >-
Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.exe";
2016-08-30 00:18:52 +00:00
if ((Test-Path Env:\MINGW_ARCHIVE) -and -not (Test-Path "${env:DIR_TEMP_MINGW}\${env:MINGW_ARCHIVE}")) {
if (Test-Path "${env:DIR_TEMP_MINGW}") {
rm -Recurse ${env:DIR_TEMP_MINGW}\*;
}
New-Item -ItemType Directory -Force -Path ${env:DIR_TEMP_MINGW} | Out-Null;
$download_loc = ${env:MINGW_URL};
Start-FileDownload $download_loc -FileName "${env:DIR_TEMP_MINGW}\${env:MINGW_ARCHIVE}";
}
- if defined MINGW_ARCHIVE 7z x -y "%DIR_TEMP_MINGW%\%MINGW_ARCHIVE%" > nul
2016-07-29 11:50:59 +00:00
- if defined MINGW_ARCHIVE set PATH=%CD%\%MINGW_DIR%\bin;C:\msys64\usr\bin;%PATH%
2015-12-24 03:53:27 +00:00
- rust-nightly-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
2016-07-29 11:50:59 +00:00
2015-12-24 03:53:27 +00:00
- rustc -V
- cargo -V
- if "%TOOLCHAIN%" == "msvc" if "%PLATFORM%" == "i686" call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat"
- if "%TOOLCHAIN%" == "msvc" if "%PLATFORM%" == "x86_64" "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
- if "%TOOLCHAIN%" == "msvc" if "%PLATFORM%" == "x86_64" call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" x86_amd64
2015-12-24 03:53:27 +00:00
2016-05-21 01:37:14 +00:00
artifacts:
- path: target\debug\uutils.exe
2016-05-21 01:37:14 +00:00
name: uutils.exe
2015-12-24 03:53:27 +00:00
build: false
2015-12-24 03:53:27 +00:00
test_script:
2016-08-06 17:52:57 +00:00
- cargo test --no-fail-fast --features "nightly generic" --no-default-features
2016-08-30 00:18:52 +00:00
cache:
- c:\cached