environment:
APPVEYOR_CACHE_ENTRY_ZIP_ARGS: "-t7z -m0=lzma -mx=9"
image: Visual Studio 2017
global:
RUST_VERSION: stable
CRATE_NAME: nvimpam
matrix:
- TARGET: i686-pc-windows-gnu
CONFIGURATION: MINGW_32
RUST_VERSION: stable
FUNCTIONALTESTS: true
- TARGET: i686-pc-windows-gnu
RUST_VERSION: beta
FUNCTIONALTESTS: false
- TARGET: i686-pc-windows-gnu
RUST_VERSION: nightly
FUNCTIONALTESTS: false
- TARGET: i686-pc-windows-msvc
RUST_VERSION: stable
FUNCTIONALTESTS: false
matrix:
allow_failures:
- RUST_VERSION: beta
- RUST_VERSION: nightly
install:
- ps: >-
If ($Env:TARGET -eq 'x86_64-pc-windows-gnu') {
$Env:PATH += ';C:\msys64\mingw64\bin'
} ElseIf ($Env:TARGET -eq 'i686-pc-windows-gnu') {
$Env:PATH += ';C:\msys64\mingw32\bin'
}
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
- rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION%
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustc -Vv
- cargo -V
build_script:
- cargo build
test_script:
- cargo test
- ps: |
if ($env:FUNCTIONALTESTS -eq 'true') {
echo "---> Functionaltests"
$env:TEST_FILE = '..\test\nvimpam_spec.lua'
$env:RUSTFLAGS = '-C opt-level=0'
}
- cd neovim
- git submodule init
- git submodule update --remote --depth 50
- ps: |
if ($env:FUNCTIONALTESTS -eq 'true') {
cp ..\target\debug\nvimpam.exe .
Get-Content ci\build.ps1 | Select-String -pattern "(python|gem.cmd|ruby|npm|neovim-node-host|testdir|cpack)" -notmatch | Out-File ci\build2.ps1
& 'ci\build2.ps1'
}
- cd ..
- cmd: if [%FUNCTIONALTESTS%] == [true] (
cargo bench -- --test )
cache:
- C:\Users\appveyor\.cargo
build: Script