fork/livesplit-core

git clone https://git.julia.blue/fork/livesplit-core

Christopher SerrClean up and improve some Fixing Algorithmsd7f8e95

v0.7.0
2.9 KiB100 linesraw
1# Based on the "trust" template v0.1.1
2# https://github.com/japaric/trust/tree/v0.1.1
3
4environment:
5
6  # At the time this was added AppVeyor was having troubles with checking
7  # revocation of SSL certificates of sites like static.rust-lang.org and what
8  # we think is crates.io. The libcurl HTTP client by default checks for
9  # revocation on Windows and according to a mailing list [1] this can be
10  # disabled.
11  #
12  # The `CARGO_HTTP_CHECK_REVOKE` env var here tells cargo to disable SSL
13  # revocation checking on Windows in libcurl. Note, though, that rustup, which
14  # we're using to download Rust here, also uses libcurl as the default backend.
15  # Unlike Cargo, however, rustup doesn't have a mechanism to disable revocation
16  # checking. To get rustup working we set `RUSTUP_USE_HYPER` which forces it to
17  # use the Hyper instead of libcurl backend. Both Hyper and libcurl use
18  # schannel on Windows but it appears that Hyper configures it slightly
19  # differently such that revocation checking isn't turned on by default.
20  #
21  # [1]: https://curl.haxx.se/mail/lib-2016-03/0202.html
22  RUSTUP_USE_HYPER: 1
23  CARGO_HTTP_CHECK_REVOKE: false
24
25  global:
26    RUST_VERSION: stable
27    CRATE_NAME: livesplit-core
28
29  matrix:
30    # MinGW
31    - TARGET: i686-pc-windows-gnu
32    - TARGET: x86_64-pc-windows-gnu
33
34    # MSVC
35    - TARGET: i686-pc-windows-msvc
36    - TARGET: x86_64-pc-windows-msvc
37
38    # Testing other channels
39    - TARGET: x86_64-pc-windows-gnu
40      RUST_VERSION: beta
41    - TARGET: x86_64-pc-windows-msvc
42      RUST_VERSION: beta
43    - TARGET: x86_64-pc-windows-gnu
44      RUST_VERSION: nightly
45    - TARGET: x86_64-pc-windows-msvc
46      RUST_VERSION: nightly
47
48matrix:
49  allow_failures:
50    - RUST_VERSION: nightly
51    - RUST_VERSION: beta
52
53install:
54  - ps: >-
55      choco install curl
56  - curl -sSf -o rustup-init.exe https://win.rustup.rs/
57  - rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION%
58  - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
59  - rustc -Vv
60  - cargo -V
61
62test_script:
63  # we don't run the "test phase" when doing deploys
64  - if [%APPVEYOR_REPO_TAG%]==[false] (
65      cargo build -p livesplit-core-capi --target %TARGET% &&
66      cargo build -p livesplit-core-capi --target %TARGET% --release &&
67      cargo test -p livesplit-core --target %TARGET% &&
68      cargo test -p livesplit-core --target %TARGET% --release
69    )
70
71before_deploy:
72  - cargo rustc -p livesplit-core-capi --target %TARGET% --release
73  - ps: ci\before_deploy.ps1
74
75deploy:
76  artifact: /.*\.zip/
77  auth_token:
78    secure: zZGfrpCR/0TmHcXPwar4hOx6pZeq3C9Wwf/g62pvf135tAwJIVpuZHJjB0sAAd2M
79  description: ''
80  on:
81    RUST_VERSION: stable
82    appveyor_repo_tag: true
83  provider: GitHub
84
85cache:
86  - C:\Users\appveyor\.cargo\registry
87  - target
88
89# branches:
90#   only:
91#     # Release tags
92#     - /^v\d+\.\d+\.\d+.*$/
93#     - master
94
95notifications:
96  - provider: Email
97    on_build_success: false
98
99# disable automatic builds
100build: false