on 5f6e310 help sign in
bat/appveyor.yml
49 lines 1.3 kB history raw
1environment:
2 global:
3 TARGET: x86_64-pc-windows-msvc
4 RUST_VERSION: stable
5 CRATE_NAME: bat
6 CARGO_HOME: "c:\\cargo"
7 RUSTUP_HOME: "c:\\rustup"
9install:
10 - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
11 - rustup-init.exe -y --default-host %TARGET%
12 - set PATH=%PATH%;C:\cargo\bin
13 - rustc -Vv
14 - cargo -V
16build: false
17test_script:
18 - cargo test --target %TARGET% --verbose
19 - cargo run --target %TARGET% -- src/bin/bat/main.rs README.md --paging=never
21before_deploy:
22 # Generate artifacts for release
23 - cargo build --bins --release --verbose
24 - ps: ci\before_deploy.ps1
26deploy:
27 description: 'Automatically deployed release'
28 artifact: /.*\.zip/
29 # Here's how:
30 # - Go to 'https://github.com/settings/tokens/new' and generate a Token with only the
31 # `public_repo` scope enabled
32 # - Then go to 'https://ci.appveyor.com/tools/encrypt' and enter the newly generated token.
33 # - Enter the "encrypted value" below
34 auth_token:
35 secure: oO4/J+hcFXgXcEqEc8gzlQNqLG0IxU78s4EyH+uczGdsyWajb3yipxPR6nXUvmoj
36 provider: GitHub
37 on:
38 RUST_VERSION: stable
39 appveyor_repo_tag: true
41cache:
42 - C:\Users\appveyor\.cargo\registry
43 - target
45notifications:
46 - provider: Email
47 on_build_success: false
48 on_build_failure: false
49 on_build_status_changed: false