File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change
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
+ SSL_CERT_FILE : " c:\\ openssl\\ cacert.pem"
16
+ OPENSSL_DIR : " c:\\ projects\\ vcpkg\\ installed\\ x64-windows"
17
+
18
+ matrix :
19
+ - APPVEYOR_RUST_CHANNEL : stable
20
+ - APPVEYOR_RUST_CHANNEL : beta
21
+ - APPVEYOR_RUST_CHANNEL : nightly
22
+
23
+ matrix :
24
+ allow_failures :
25
+ - APPVEYOR_RUST_CHANNEL : nightly
26
+
27
+ install :
28
+ # Install system dependencies
29
+ - mkdir c:\openssl
30
+ - appveyor DownloadFile https://curl.haxx.se/ca/cacert.pem -FileName c:\openssl\cacert.pem
31
+ - git clone https://github.com/Microsoft/vcpkg.git %VCPKG_ROOT%
32
+ - ' %VCPKG_ROOT%\bootstrap-vcpkg.bat'
33
+ - echo yes > %VCPKG_ROOT%\Downloads\AlwaysAllowDownloads
34
+ - ' %VCPKG_ROOT%\vcpkg.exe install openssl libpq'
35
+ # Install rust and cargo
36
+ - appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
37
+ - rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain %APPVEYOR_RUST_CHANNEL%
38
+ - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
39
+ # Debug information
40
+ - rustc -V
41
+ - cargo -V
42
+
43
+ build : false
44
+
45
+ before_test :
46
+ # Setup test database
47
+ - set PATH=%PATH%;C:\Program Files\PostgreSQL\9.6\bin
48
+ - createdb cargo_registry_test
49
+ - set TEST_DATABASE_URL="postgres://postgres:Password12!@localhost/cargo_registry_test"
50
+
51
+ test_script :
52
+ - cargo test
53
+
54
+ cache :
55
+ - target
56
+ - C:\Users\appveyor\.cargo\registry
You can’t perform that action at this time.
0 commit comments