mirror of
https://github.com/loot/loot-condition-interpreter.git
synced 2026-07-27 14:16:09 -07:00
Add Travis and AppVeyor config
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
language: rust
|
||||
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- p7zip-full
|
||||
|
||||
cache: cargo
|
||||
|
||||
install:
|
||||
- rustup component add rustfmt-preview
|
||||
- rustfmt --version
|
||||
|
||||
before_script:
|
||||
- wget https://github.com/WrinklyNinja/testing-plugins/archive/1.4.1.tar.gz
|
||||
- tar -xf 1.4.1.tar.gz
|
||||
- mv testing-plugins-1.4.1 testing-plugins
|
||||
|
||||
- wget https://github.com/loot/loot-api/releases/download/0.13.8/loot_api-0.13.8-0-g47797cc_dev-win32.7z
|
||||
- 7z x loot_api-0.13.8-0-g47797cc_dev-win32.7z
|
||||
|
||||
- wget https://github.com/loot/loot-api/releases/download/0.13.8/loot_api-0.13.8-0-g47797cc_dev-win64.7z
|
||||
- 7z x loot_api-0.13.8-0-g47797cc_dev-win64.7z
|
||||
|
||||
script:
|
||||
- cargo fmt -- --check
|
||||
- cargo test
|
||||
@@ -0,0 +1,33 @@
|
||||
os: Visual Studio 2017
|
||||
|
||||
version: "{build}-{branch}"
|
||||
|
||||
cache:
|
||||
- C:\Users\appveyor\.cargo
|
||||
- target
|
||||
|
||||
install:
|
||||
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
|
||||
- rustup-init -yv
|
||||
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
|
||||
- rustc -vV
|
||||
- cargo -vV
|
||||
|
||||
- rustup component add rustfmt-preview
|
||||
- rustfmt --version
|
||||
|
||||
- ps: (New-Object Net.WebClient).DownloadFile('https://github.com/WrinklyNinja/testing-plugins/archive/1.4.0.zip', "$env:APPVEYOR_BUILD_FOLDER\1.4.0.zip")
|
||||
- ps: 7z x "$env:APPVEYOR_BUILD_FOLDER\1.4.0.zip"
|
||||
- mv testing-plugins-1.4.0 testing-plugins
|
||||
|
||||
- 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', "$env:APPVEYOR_BUILD_FOLDER\loot_api-0.13.8-0-g47797cc_dev-win32.7z")
|
||||
- ps: 7z x "$env:APPVEYOR_BUILD_FOLDER\loot_api-0.13.8-0-g47797cc_dev-win32.7z"
|
||||
|
||||
- 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', "$env:APPVEYOR_BUILD_FOLDER\loot_api-0.13.8-0-g47797cc_dev-win64.7z")
|
||||
- ps: 7z x "$env:APPVEYOR_BUILD_FOLDER\loot_api-0.13.8-0-g47797cc_dev-win64.7z"
|
||||
|
||||
build: false
|
||||
|
||||
test_script:
|
||||
- cargo fmt -- --check
|
||||
- cargo test
|
||||
Reference in New Issue
Block a user