appveyor.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. # AppVeyor configuration template for Rust using rustup for Rust installation
  2. # https://github.com/starkat99/appveyor-rust
  3. ## Operating System (VM environment) ##
  4. # Rust needs at least Visual Studio 2013 AppVeyor OS for MSVC targets.
  5. os: Visual Studio 2015
  6. ## Build Matrix ##
  7. # This configuration will setup a build for each channel & target combination (12 windows
  8. # combinations in all).
  9. #
  10. # There are 3 channels: stable, beta, and nightly.
  11. #
  12. # Alternatively, the full version may be specified for the channel to build using that specific
  13. # version (e.g. channel: 1.5.0)
  14. #
  15. # The values for target are the set of windows Rust build targets. Each value is of the form
  16. #
  17. # ARCH-pc-windows-TOOLCHAIN
  18. #
  19. # Where ARCH is the target architecture, either x86_64 or i686, and TOOLCHAIN is the linker
  20. # toolchain to use, either msvc or gnu. See https://www.rust-lang.org/downloads.html#win-foot for
  21. # a description of the toolchain differences.
  22. # See https://github.com/rust-lang-nursery/rustup.rs/#toolchain-specification for description of
  23. # toolchains and host triples.
  24. #
  25. # Comment out channel/target combos you do not wish to build in CI.
  26. #
  27. # You may use the `cargoflags` and `RUSTFLAGS` variables to set additional flags for cargo commands
  28. # and rustc, respectively. For instance, you can uncomment the cargoflags lines in the nightly
  29. # channels to enable unstable features when building for nightly. Or you could add additional
  30. # matrix entries to test different combinations of features.
  31. environment:
  32. matrix:
  33. ### MSVC Toolchains ###
  34. # Stable 64-bit MSVC
  35. - channel: stable
  36. target: x86_64-pc-windows-msvc
  37. # Stable 32-bit MSVC
  38. - channel: stable
  39. target: i686-pc-windows-msvc
  40. # Beta 64-bit MSVC
  41. - channel: beta
  42. target: x86_64-pc-windows-msvc
  43. # Beta 32-bit MSVC
  44. - channel: beta
  45. target: i686-pc-windows-msvc
  46. # Nightly 64-bit MSVC
  47. - channel: nightly
  48. target: x86_64-pc-windows-msvc
  49. #cargoflags: --features "unstable"
  50. # Nightly 32-bit MSVC
  51. - channel: nightly
  52. target: i686-pc-windows-msvc
  53. #cargoflags: --features "unstable"
  54. ### GNU Toolchains ###
  55. # Stable 64-bit GNU
  56. - channel: stable
  57. target: x86_64-pc-windows-gnu
  58. # Stable 32-bit GNU
  59. - channel: stable
  60. target: i686-pc-windows-gnu
  61. # Beta 64-bit GNU
  62. - channel: beta
  63. target: x86_64-pc-windows-gnu
  64. # Beta 32-bit GNU
  65. - channel: beta
  66. target: i686-pc-windows-gnu
  67. # Nightly 64-bit GNU
  68. - channel: nightly
  69. target: x86_64-pc-windows-gnu
  70. #cargoflags: --features "unstable"
  71. # Nightly 32-bit GNU
  72. - channel: nightly
  73. target: i686-pc-windows-gnu
  74. #cargoflags: --features "unstable"
  75. ### Allowed failures ###
  76. # See AppVeyor documentation for specific details. In short, place any channel or targets you wish
  77. # to allow build failures on (usually nightly at least is a wise choice). This will prevent a build
  78. # or test failure in the matching channels/targets from failing the entire build.
  79. matrix:
  80. allow_failures:
  81. - channel: nightly
  82. # If you only care about stable channel build failures, uncomment the following line:
  83. #- channel: beta
  84. ## Install Script ##
  85. # This is the most important part of the AppVeyor configuration. This installs the version of Rust
  86. # specified by the 'channel' and 'target' environment variables from the build matrix. This uses
  87. # rustup to install Rust.
  88. #
  89. # For simple configurations, instead of using the build matrix, you can simply set the
  90. # default-toolchain and default-host manually here.
  91. install:
  92. - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
  93. - rustup-init -yv --default-toolchain %channel% --default-host %target%
  94. - set PATH=%PATH%;%USERPROFILE%\.cargo\bin
  95. - rustc -vV
  96. - cargo -vV
  97. ## Build Script ##
  98. # 'cargo test' takes care of building for us, so disable AppVeyor's build stage. This prevents
  99. # the "directory does not contain a project or solution file" error.
  100. build: false
  101. # Uses 'cargo test' to run tests and build. Alternatively, the project may call compiled programs
  102. #directly or perform other testing commands. Rust will automatically be placed in the PATH
  103. # environment variable.
  104. test_script:
  105. - cargo test --verbose %cargoflags%