Skip to content

Commit de8a5a3

Browse files
committed
Appveyor config
1 parent 7afaf7a commit de8a5a3

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

appveyor.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
version: '0.1.{build}'
2+
3+
platform: x64
4+
5+
services:
6+
- postgresql96
7+
8+
environment:
9+
global:
10+
PGUSER: postgres
11+
PGPASSWORD: Password12!
12+
VCPKGRS_DYNAMIC: 1
13+
VCPKG_ROOT: c:\projects\vcpkg
14+
VCPKG_DEFAULT_TRIPLET: x64-windows
15+
16+
matrix:
17+
- APPVEYOR_RUST_CHANNEL: stable
18+
- APPVEYOR_RUST_CHANNEL: beta
19+
- APPVEYOR_RUST_CHANNEL: nightly
20+
21+
matrix:
22+
allow_failures:
23+
- APPVEYOR_RUST_CHANNEL: nightly
24+
25+
install:
26+
# Install system dependencies
27+
- git clone https://github.com/Microsoft/vcpkg.git %VCPKG_ROOT%
28+
- '%VCPKG_ROOT%\bootstrap-vcpkg.bat'
29+
- echo yes > %VCPKG_ROOT%\Downloads\AlwaysAllowDownloads
30+
- '%VCPKG_ROOT%\vcpkg.exe install openssl libpq'
31+
# Install rust and cargo
32+
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
33+
- rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain %APPVEYOR_RUST_CHANNEL%
34+
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
35+
# Debug information
36+
- rustc -V
37+
- cargo -V
38+
39+
build: false
40+
41+
before_test:
42+
# Setup test database
43+
- set PATH=%PATH%;C:\Program Files\PostgreSQL\9.6\bin
44+
- createdb cargo_registry_test
45+
- set TEST_DATABASE_URL="postgres://postgres:Password12!@localhost/cargo_registry_test"
46+
47+
test_script:
48+
- cargo test
49+
50+
cache:
51+
- target
52+
- C:\Users\appveyor\.cargo\registry

0 commit comments

Comments
 (0)