|
1 |
| -# Based on the "trust" template v0.1.2 |
2 |
| -# https://github.com/japaric/trust/tree/v0.1.2 |
3 |
| - |
4 |
| -environment: |
5 |
| - global: |
6 |
| - # DONE This is the Rust channel that build jobs will use by default but can be |
7 |
| - # overridden on a case by case basis down below |
8 |
| - RUST_VERSION: stable |
9 |
| - |
10 |
| - # DONE Update this to match the name of your project. |
11 |
| - CRATE_NAME: binary-heap-plus |
12 |
| - |
13 |
| - # DONE These are all the build jobs. Adjust as necessary. Comment out what you |
14 |
| - # don't need |
15 |
| - matrix: |
16 |
| - # MinGW |
17 |
| - - TARGET: i686-pc-windows-gnu |
18 |
| - - TARGET: x86_64-pc-windows-gnu |
19 |
| - |
20 |
| - # MSVC |
21 |
| - - TARGET: i686-pc-windows-msvc |
22 |
| - - TARGET: x86_64-pc-windows-msvc |
23 |
| - |
24 |
| - # Testing other channels |
25 |
| - - TARGET: x86_64-pc-windows-gnu |
26 |
| - RUST_VERSION: nightly |
27 |
| - - TARGET: x86_64-pc-windows-msvc |
28 |
| - RUST_VERSION: nightly |
29 |
| - |
30 |
| -install: |
31 |
| - - ps: >- |
32 |
| - If ($Env:TARGET -eq 'x86_64-pc-windows-gnu') { |
33 |
| - $Env:PATH += ';C:\msys64\mingw64\bin' |
34 |
| - } ElseIf ($Env:TARGET -eq 'i686-pc-windows-gnu') { |
35 |
| - $Env:PATH += ';C:\msys64\mingw32\bin' |
36 |
| - } |
37 |
| - - curl -sSf -o rustup-init.exe https://win.rustup.rs/ |
38 |
| - - rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION% |
39 |
| - - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin |
40 |
| - - rustc -Vv |
41 |
| - - cargo -V |
42 |
| - |
43 |
| -# TODO This is the "test phase", tweak it as you see fit |
44 |
| -test_script: |
45 |
| - - cargo build --target %TARGET% |
46 |
| - - cargo test --target %TARGET% |
47 |
| - - cargo build --target %TARGET% --features serde |
48 |
| - - cargo test --target %TARGET% --features serde |
49 |
| - - cargo build --target %TARGET% --release |
50 |
| - - cargo test --target %TARGET% --release |
51 |
| - - cargo build --target %TARGET% --release --features serde |
52 |
| - - cargo test --target %TARGET% --release --features serde |
53 |
| - |
54 |
| -before_deploy: |
55 |
| - # TODO Update this to build the artifacts that matter to you |
56 |
| - - cargo rustc --target %TARGET% --release --bin hello -- -C lto |
57 |
| - - ps: ci\before_deploy.ps1 |
58 |
| - |
59 |
| -deploy: |
60 |
| - artifact: /.*\.zip/ |
61 |
| - # TODO update `auth_token.secure` |
62 |
| - # - Create a `public_repo` GitHub token. Go to: https://github.com/settings/tokens/new |
63 |
| - # - Encrypt it. Go to https://ci.appveyor.com/tools/encrypt |
64 |
| - # - Paste the output down here |
65 |
| - auth_token: |
66 |
| - secure: t3puM/2hOig26EHhAodcZBc61NywF7/PFEpimR6SwGaCiqS07KR5i7iAhSABmBp7 |
67 |
| - description: '' |
68 |
| - on: |
69 |
| - # DONE Here you can pick which targets will generate binary releases |
70 |
| - # In this example, there are some targets that are tested using the stable |
71 |
| - # and nightly channels. This condition makes sure there is only one release |
72 |
| - # for such targets and that's generated using the stable channel |
73 |
| - RUST_VERSION: never |
74 |
| - appveyor_repo_tag: true |
75 |
| - provider: GitHub |
76 |
| - |
77 |
| -cache: |
78 |
| - - C:\Users\appveyor\.cargo\registry |
79 |
| - - target |
80 |
| - |
81 | 1 | branches:
|
82 | 2 | only:
|
83 |
| - # Release tags |
84 | 3 | - never-never-never
|
85 |
| - |
86 |
| -notifications: |
87 |
| - - provider: Email |
88 |
| - on_build_success: false |
89 |
| - |
90 |
| -# Building is done in the test phase, so we disable Appveyor's build phase. |
91 |
| -build: false |
0 commit comments