fork/livesplit-core

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

Christopher SerrPublish v0.4.0be13a80

v0.5.1
2.6 KiB87 linesraw
1# Based on the "trust" template v0.1.1
2# https://github.com/japaric/trust/tree/v0.1.1
3
4environment:
5  global:
6  # TODO 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    # TODO Update this to match the name of your project.
11    CRATE_NAME: livesplit-core
12
13  # TODO 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
30install:
31  - ps: >-
32      choco install curl
33  - curl -sSf -o rustup-init.exe https://win.rustup.rs/
34  - rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION%
35  - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
36  - rustc -Vv
37  - cargo -V
38
39# TODO This is the "test phase", tweak it as you see fit
40test_script:
41  # we don't run the "test phase" when doing deploys
42  - if [%APPVEYOR_REPO_TAG%]==[false] (
43      cargo build -p livesplit-core-capi --target %TARGET% &&
44      cargo build -p livesplit-core-capi --target %TARGET% --release &&
45      cargo test -p livesplit-core-capi --target %TARGET% &&
46      cargo test -p livesplit-core-capi --target %TARGET% --release
47    )
48
49before_deploy:
50  # TODO Update this to build the artifacts that matter to you
51  - cargo rustc -p livesplit-core-capi --target %TARGET% --release
52  - ps: ci\before_deploy.ps1
53
54deploy:
55  artifact: /.*\.zip/
56  # TODO update `auth_token.secure`
57  # - Create a `public_repo` GitHub token. Go to: https://github.com/settings/tokens/new
58  # - Encrypt it. Go to https://ci.appveyor.com/tools/encrypt
59  # - Paste the output down here
60  auth_token:
61    secure: zZGfrpCR/0TmHcXPwar4hOx6pZeq3C9Wwf/g62pvf135tAwJIVpuZHJjB0sAAd2M
62  description: ''
63  on:
64    # TODO Here you can pick which targets will generate binary releases
65    # In this example, there are some targets that are tested using the stable
66    # and nightly channels. This condition makes sure there is only one release
67    # for such targets and that's generated using the stable channel
68    RUST_VERSION: stable
69    appveyor_repo_tag: true
70  provider: GitHub
71
72cache:
73  - C:\Users\appveyor\.cargo\registry
74  - target
75
76# branches:
77#   only:
78#     # Release tags
79#     - /^v\d+\.\d+\.\d+.*$/
80#     - master
81
82notifications:
83  - provider: Email
84    on_build_success: false
85
86# disable automatic builds
87build: false