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
+ TEST_DATABASE_URL : " postgres://postgres:Password12!@localhost/cargo_registry_test"
18
+
19
+ matrix :
20
+ - APPVEYOR_RUST_CHANNEL : stable
21
+ - APPVEYOR_RUST_CHANNEL : beta
22
+ - APPVEYOR_RUST_CHANNEL : nightly
23
+
24
+ matrix :
25
+ allow_failures :
26
+ - APPVEYOR_RUST_CHANNEL : nightly
27
+
28
+ install :
29
+ # Install system dependencies
30
+ - mkdir c:\openssl
31
+ - appveyor DownloadFile https://curl.haxx.se/ca/cacert.pem -FileName c:\openssl\cacert.pem
32
+ - git clone https://github.com/Microsoft/vcpkg.git %VCPKG_ROOT%
33
+ - ' %VCPKG_ROOT%\bootstrap-vcpkg.bat'
34
+ - echo yes > %VCPKG_ROOT%\Downloads\AlwaysAllowDownloads
35
+ - ' %VCPKG_ROOT%\vcpkg.exe install openssl libpq'
36
+ # Install rust and cargo
37
+ - appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
38
+ - rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain %APPVEYOR_RUST_CHANNEL%
39
+ - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
40
+ # Debug information
41
+ - rustc -V
42
+ - cargo -V
43
+
44
+ build : false
45
+
46
+ before_test :
47
+ # Setup test database
48
+ - set PATH=%PATH%;C:\Program Files\PostgreSQL\9.6\bin
49
+ - createdb 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