Files
loot-condition-interpreter/appveyor.yml
T

56 lines
1.9 KiB
YAML
Raw Normal View History

2018-10-05 20:30:50 +01:00
os: Visual Studio 2017
version: "{build}-{branch}"
cache:
- C:\Users\appveyor\.cargo
- target
install:
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
2020-05-29 16:44:22 +01:00
- rustup-init --profile=minimal -yv
2018-10-05 20:30:50 +01:00
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
- rustc -vV
- cargo -vV
2020-05-29 16:44:22 +01:00
- rustup component add rustfmt
2018-10-05 20:30:50 +01:00
- rustfmt --version
2018-10-23 18:30:05 +01:00
- cd tests
- ps: (New-Object Net.WebClient).DownloadFile('https://github.com/WrinklyNinja/testing-plugins/archive/1.4.0.zip', "$PWD/1.4.0.zip")
- 7z x 1.4.0.zip
2018-10-05 20:30:50 +01:00
- mv testing-plugins-1.4.0 testing-plugins
2018-10-23 18:30:05 +01:00
- ps: (New-Object Net.WebClient).DownloadFile('https://github.com/loot/loot-api/releases/download/0.13.8/loot_api-0.13.8-0-g47797cc_dev-win32.7z', "$PWD/loot_api_win32.7z")
- 7z x loot_api_win32.7z
- mv loot_api-0.13.8-0-g47797cc_dev-win32 loot_api_win32
2018-10-05 20:30:50 +01:00
2018-10-23 18:30:05 +01:00
- ps: (New-Object Net.WebClient).DownloadFile('https://github.com/loot/loot-api/releases/download/0.13.8/loot_api-0.13.8-0-g47797cc_dev-win64.7z', "$PWD/loot_api_win64.7z")
- 7z x loot_api_win64.7z
- mv loot_api-0.13.8-0-g47797cc_dev-win64 loot_api_win64
- ps: (New-Object Net.WebClient).DownloadFile('https://github.com/loot/loot-api-python/releases/download/4.0.2/loot_api_python-4.0.2-0-gd356ac2_master-python2.7-win32.7z', "$PWD/loot_api_python.7z")
- 7z x loot_api_python.7z
- mv loot_api_python-4.0.2-0-gd356ac2_master-python2.7-win32 loot_api_python
- ps: (New-Object Net.WebClient).DownloadFile('https://7-zip.org/a/7z1805-extra.7z', "$PWD/7z.7z")
- ps: 7z x "$PWD/7z.7z" -o7z
2018-10-23 18:30:05 +01:00
- cd ..
2018-10-05 20:30:50 +01:00
build: false
test_script:
2018-10-07 22:13:48 +01:00
- cargo fmt --all -- --check
- cargo test --all --all-features
# Need to rebuild the FFI wrapper so that its binary is given a filename
# without a hash.
- cargo build --manifest-path ffi/Cargo.toml --features ffi-headers
- ps: mkdir ffi/build
- cd ffi/build
2019-12-23 13:22:01 +00:00
- cmake .. -G "Visual Studio 15 2017"
2018-10-07 22:13:48 +01:00
- cmake --build .
- ctest