2016-01-24 23:32:39 +08:00
|
|
|
environment:
|
2017-05-28 11:35:46 +08:00
|
|
|
matrix:
|
2018-08-31 03:21:32 +08:00
|
|
|
- TARGET: x86_64-pc-windows-gnu
|
2017-05-28 11:35:46 +08:00
|
|
|
MSYS2_BITS: 64
|
2018-08-31 03:21:32 +08:00
|
|
|
- TARGET: x86_64-pc-windows-msvc
|
2017-05-28 11:35:46 +08:00
|
|
|
VCPKG_DEFAULT_TRIPLET: x64-windows
|
2017-06-16 23:33:07 +08:00
|
|
|
VCPKGRS_DYNAMIC: 1
|
2018-08-31 03:21:32 +08:00
|
|
|
- TARGET: x86_64-pc-windows-msvc
|
2017-05-28 11:35:46 +08:00
|
|
|
VCPKG_DEFAULT_TRIPLET: x64-windows-static
|
|
|
|
RUSTFLAGS: -Ctarget-feature=+crt-static
|
2016-01-24 23:32:39 +08:00
|
|
|
install:
|
2018-08-31 03:21:32 +08:00
|
|
|
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
|
|
|
|
- rustup-init.exe -y --default-host %TARGET%
|
|
|
|
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
|
2016-01-29 01:25:33 +08:00
|
|
|
- if defined MSYS2_BITS set PATH=%PATH%;C:\msys64\mingw%MSYS2_BITS%\bin
|
2016-01-24 23:32:39 +08:00
|
|
|
- rustc -V
|
|
|
|
- cargo -V
|
2018-08-31 03:21:32 +08:00
|
|
|
# download SQLite dll (useful only when the `bundled` feature is not set)
|
|
|
|
- appveyor-retry appveyor DownloadFile https://sqlite.org/2018/sqlite-dll-win64-x64-3240000.zip -FileName sqlite-dll-win64-x64.zip
|
|
|
|
- if not defined VCPKG_DEFAULT_TRIPLET 7z e sqlite-dll-win64-x64.zip -y > nul
|
|
|
|
# download SQLite headers (useful only when the `bundled` feature is not set)
|
|
|
|
- appveyor-retry appveyor DownloadFile https://sqlite.org/2018/sqlite-amalgamation-3240000.zip -FileName sqlite-amalgamation.zip
|
|
|
|
- if not defined VCPKG_DEFAULT_TRIPLET 7z e sqlite-amalgamation.zip -y > nul
|
|
|
|
# specify where the SQLite dll has been downloaded (useful only when the `bundled` feature is not set)
|
|
|
|
- if not defined VCPKG_DEFAULT_TRIPLET SET SQLITE3_LIB_DIR=%APPVEYOR_BUILD_FOLDER%
|
|
|
|
# specify where the SQLite headers have been downloaded (useful only when the `bundled` feature is not set)
|
|
|
|
- if not defined VCPKG_DEFAULT_TRIPLET SET SQLITE3_INCLUDE_DIR=%APPVEYOR_BUILD_FOLDER%
|
|
|
|
# install sqlite3 package
|
|
|
|
- if defined VCPKG_DEFAULT_TRIPLET vcpkg install sqlite3
|
2016-01-24 23:32:39 +08:00
|
|
|
|
|
|
|
build: false
|
|
|
|
|
|
|
|
test_script:
|
2016-01-26 01:35:22 +08:00
|
|
|
- cargo test --lib --verbose
|
2016-12-31 14:09:21 +08:00
|
|
|
- cargo test --lib --verbose --features bundled
|
2018-05-01 04:02:14 +08:00
|
|
|
- cargo test --lib --features "backup blob chrono csvtab functions hooks limits load_extension serde_json trace vtab"
|
|
|
|
- cargo test --lib --features "backup blob chrono csvtab functions hooks limits load_extension serde_json trace vtab buildtime_bindgen"
|
|
|
|
- cargo test --lib --features "backup blob chrono csvtab functions hooks limits load_extension serde_json trace vtab bundled"
|
|
|
|
- cargo test --lib --features "backup blob chrono csvtab functions hooks limits load_extension serde_json trace vtab bundled buildtime_bindgen"
|
2016-01-25 00:32:07 +08:00
|
|
|
|
|
|
|
cache:
|
|
|
|
- C:\Users\appveyor\.cargo
|