diff --git a/.travis.yml b/.travis.yml index 74f2a6a79..5de3a0075 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,7 @@ jobs: rust: stable cache: cargo script: - - cargo test --locked --no-default-features + - (cd proxy && cargo test --locked --no-default-features) - language: go # XXX; The "1.10" must be quoted or it will get intrepreted as 1.1. See diff --git a/proxy/Dockerfile b/proxy/Dockerfile index c1f46df01..881e5682f 100644 --- a/proxy/Dockerfile +++ b/proxy/Dockerfile @@ -61,8 +61,8 @@ ARG PROXY_SKIP_TESTS RUN if [ -n "$PROXY_SKIP_TESTS" ]; \ then echo "tests skipped" ; \ elif [ -n "$PROXY_UNOPTIMIZED" ]; \ - then cargo test -p conduit-proxy --frozen --no-default-features ; \ - else cargo test -p conduit-proxy --frozen --release --no-default-features ; \ + then (cd proxy && cargo test --frozen --no-default-features) ; \ + else (cd proxy && cargo test --frozen --release --no-default-features) ; \ fi RUN if [ -n "$PROXY_UNOPTIMIZED" ]; \ then mv target/debug/conduit-proxy target/conduit-proxy ; \