File tree Expand file tree Collapse file tree 9 files changed +123
-135
lines changed Expand file tree Collapse file tree 9 files changed +123
-135
lines changed Original file line number Diff line number Diff line change @@ -24,19 +24,12 @@ matrix:
24
24
MAKE_TARGETS="test distcheck doc install uninstall"
25
25
MACOSX_DEPLOYMENT_TARGET=10.7
26
26
os : osx
27
- before_install :
28
- - export OPENSSL_DIR=`brew --prefix openssl`
29
- - export OPENSSL_INCLUDE_DIR=`brew --prefix openssl`/include
30
- - export OPENSSL_LIB_DIR=`brew --prefix openssl`/include
31
27
- env : TARGET=i686-apple-darwin
32
28
MAKE_TARGETS=test
33
29
MACOSX_DEPLOYMENT_TARGET=10.7
34
30
CFG_DISABLE_CROSS_TESTS=1
35
31
os : osx
36
- before_install :
37
- - export OPENSSL_DIR=`brew --prefix openssl`
38
- - export OPENSSL_INCLUDE_DIR=`brew --prefix openssl`/include
39
- - export OPENSSL_LIB_DIR=`brew --prefix openssl`/include
32
+ install : brew uninstall openssl && brew install openssl --universal --without-test
40
33
41
34
# stable musl target, tested
42
35
- env : TARGET=x86_64-unknown-linux-musl
Original file line number Diff line number Diff line change @@ -20,18 +20,18 @@ path = "src/cargo/lib.rs"
20
20
advapi32-sys = " 0.2"
21
21
crates-io = { path = " src/crates-io" , version = " 0.4" }
22
22
crossbeam = " 0.2"
23
- curl = " 0.3 "
23
+ curl = " 0.4 "
24
24
docopt = " 0.6"
25
25
env_logger = " 0.3"
26
26
filetime = " 0.1"
27
27
flate2 = " 0.2"
28
- fs2 = " 0.2 "
29
- git2 = " 0.5 "
30
- git2-curl = " 0.6 "
28
+ fs2 = " 0.3 "
29
+ git2 = " 0.6 "
30
+ git2-curl = " 0.7 "
31
31
glob = " 0.2"
32
32
kernel32-sys = " 0.2"
33
33
libc = " 0.2"
34
- libgit2-sys = " 0.5 "
34
+ libgit2-sys = " 0.6 "
35
35
log = " 0.3"
36
36
miow = " 0.1"
37
37
num_cpus = " 1.0"
Original file line number Diff line number Diff line change @@ -252,14 +252,8 @@ target/openssl/$(1).stamp: target/openssl/openssl-$$(OPENSSL_VERS).tar.gz \
252
252
# variables read by various build scripts to find openssl
253
253
cargo-$(1 ) : export OPENSSL_STATIC := 1
254
254
cargo-$(1 ) : export OPENSSL_DIR := $$(OPENSSL_INSTALL_$(1 ) )
255
- cargo-$(1 ) : export OPENSSL_ROOT_DIR := $$(OPENSSL_INSTALL_$(1 ) )
256
- cargo-$(1 ) : export OPENSSL_LIB_DIR := $$(OPENSSL_INSTALL_$(1 ) ) /lib
257
- cargo-$(1 ) : export OPENSSL_INCLUDE_DIR := $$(OPENSSL_INSTALL_$(1 ) ) /include
258
255
test-unit-$(1 ) : export OPENSSL_STATIC := 1
259
256
test-unit-$(1 ) : export OPENSSL_DIR := $$(OPENSSL_INSTALL_$(1 ) )
260
- test-unit-$(1 ) : export OPENSSL_ROOT_DIR := $$(OPENSSL_INSTALL_$(1 ) )
261
- test-unit-$(1 ) : export OPENSSL_LIB_DIR := $$(OPENSSL_INSTALL_$(1 ) ) /lib
262
- test-unit-$(1 ) : export OPENSSL_INCLUDE_DIR := $$(OPENSSL_INSTALL_$(1 ) ) /include
263
257
264
258
# build libz statically into the cargo we're producing
265
259
cargo-$(1 ) : export LIBZ_SYS_STATIC := 1
Original file line number Diff line number Diff line change @@ -13,6 +13,6 @@ name = "crates_io"
13
13
path = " lib.rs"
14
14
15
15
[dependencies ]
16
- curl = " 0.3 "
16
+ curl = " 0.4 "
17
17
url = " 1.0"
18
18
rustc-serialize = " 0.3"
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ Caused by:
164
164
// just not verify the error message here.
165
165
"[..]"
166
166
} else {
167
- "[[..] ] SSL error: [..]"
167
+ "[.. ] SSL error: [..]"
168
168
} ) ) ) ;
169
169
170
170
t. join ( ) . ok ( ) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ bufstream = "0.1"
11
11
cargo = { path = " ../.." }
12
12
filetime = " 0.1"
13
13
flate2 = " 0.2"
14
- git2 = " 0.5 "
14
+ git2 = { version = " 0.6 " , default-features = false }
15
15
hamcrest = " 0.1"
16
16
kernel32-sys = " 0.2"
17
17
libc = " 0.2"
Original file line number Diff line number Diff line change @@ -199,15 +199,16 @@ fn rebuild_tests_if_lib_changes() {
199
199
#[test]
200
200
fn test() { foo::foo(); }
201
201
"# ) ;
202
+ p. build ( ) ;
202
203
203
- assert_that ( p. cargo_process ( "build" ) ,
204
+ p. root ( ) . move_into_the_past ( ) ;
205
+
206
+ assert_that ( p. cargo ( "build" ) ,
204
207
execs ( ) . with_status ( 0 ) ) ;
205
208
assert_that ( p. cargo ( "test" ) ,
206
209
execs ( ) . with_status ( 0 ) ) ;
207
210
208
211
File :: create ( & p. root ( ) . join ( "src/lib.rs" ) ) . unwrap ( ) ;
209
- p. root ( ) . move_into_the_past ( ) ;
210
- p. root ( ) . join ( "target" ) . move_into_the_past ( ) ;
211
212
212
213
assert_that ( p. cargo ( "build" ) ,
213
214
execs ( ) . with_status ( 0 ) ) ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ fn net_retry_loads_from_config() {
26
26
assert_that ( p. cargo_process ( "build" ) . arg ( "-v" ) ,
27
27
execs ( ) . with_status ( 101 )
28
28
. with_stderr_contains ( "[WARNING] spurious network error \
29
- (1 tries remaining): [2/-1] [ ..]") ) ;
29
+ (1 tries remaining): [..]") ) ;
30
30
}
31
31
32
32
#[ test]
@@ -50,7 +50,7 @@ fn net_retry_git_outputs_warning() {
50
50
assert_that ( p. cargo_process ( "build" ) . arg ( "-v" ) . arg ( "-j" ) . arg ( "1" ) ,
51
51
execs ( ) . with_status ( 101 )
52
52
. with_stderr_contains ( "[WARNING] spurious network error \
53
- (2 tries remaining): [2/-1] [ ..]")
53
+ (2 tries remaining): [..]")
54
54
. with_stderr_contains ( "\
55
- [WARNING] spurious network error (1 tries remaining): [2/-1] [ ..]") ) ;
55
+ [WARNING] spurious network error (1 tries remaining): [..]") ) ;
56
56
}
You can’t perform that action at this time.
0 commit comments