diff options
author | Lilian A. Moraru <lilian.moraru90@gmail.com> | 2017-12-19 01:04:49 +0200 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2017-12-19 08:16:31 -0500 |
commit | 636bbc7c8f88585bc4aa22aabea47373fe92aa59 (patch) | |
tree | 90263ded94b755b09563a1e6b68a68d7f093f15e /appveyor.yml | |
parent | 162e085b98f8f2c627a92402d2e38dda04fc3e48 (diff) |
Speeding CI builds
Diffstat (limited to 'appveyor.yml')
-rw-r--r-- | appveyor.yml | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/appveyor.yml b/appveyor.yml index 2aa4c526..6f9d73cb 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,20 @@ +# Inspired from https://github.com/habitat-sh/habitat/blob/master/appveyor.yml +cache: + - c:\cargo\registry + - c:\cargo\git + - c:\projects\ripgrep\target + +init: + - mkdir c:\cargo + - mkdir c:\rustup + - SET PATH=c:\cargo\bin;%PATH% + +clone_folder: c:\projects\ripgrep + environment: + CARGO_HOME: "c:\\cargo" + RUSTUP_HOME: "c:\\rustup" + CARGO_TARGET_DIR: "c:\\projects\\ripgrep\\target" global: PROJECT_NAME: ripgrep RUST_BACKTRACE: full @@ -12,12 +28,14 @@ environment: - TARGET: x86_64-pc-windows-msvc CHANNEL: stable +matrix: + fast_finish: true + # Install Rust and Cargo # (Based on from https://github.com/rust-lang/libc/blob/master/appveyor.yml) install: - curl -sSf -o rustup-init.exe https://win.rustup.rs/ - - rustup-init.exe -y --default-host %TARGET% - - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin + - rustup-init.exe -y --default-host %TARGET% --no-modify-path - if defined MSYS2_BITS set PATH=%PATH%;C:\msys64\mingw%MSYS2_BITS%\bin - rustc -V - cargo -V @@ -28,12 +46,7 @@ build: false # Equivalent to Travis' `script` phase # TODO modify this phase as you see fit test_script: - - cargo test --verbose - - cargo test --verbose --manifest-path grep/Cargo.toml - - cargo test --verbose --manifest-path globset/Cargo.toml - - cargo test --verbose --manifest-path ignore/Cargo.toml - - cargo test --verbose --manifest-path wincolor/Cargo.toml - - cargo test --verbose --manifest-path termcolor/Cargo.toml + - cargo test --verbose --all before_deploy: # Generate artifacts for release |