Artifact Content
Not logged in

Artifact 5b9988b0b2f9a9b9c3139bcecbf0094adde138c3:


environment:
  RUSTFLAGS: -Zunstable-options -Ctarget-feature=+crt-static
  matrix:
  - TARGET: x86_64-pc-windows-gnu
    BITS: 64
    CFG_DISABLE_CROSS_TESTS: 1
    MAKE_TARGETS: test-unit-x86_64-pc-windows-gnu
  - TARGET: i686-pc-windows-gnu
    BITS: 32
    MINGW_URL: https://s3.amazonaws.com/rust-lang-ci
    MINGW_ARCHIVE: i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z
    MINGW_DIR: mingw32
    CFG_DISABLE_CROSS_TESTS: 1
    MAKE_TARGETS: test-unit-i686-pc-windows-gnu
  - TARGET: i686-pc-windows-msvc
    BITS: 32
    MAKE_TARGETS: test-unit-i686-pc-windows-msvc
    CFG_DISABLE_CROSS_TESTS: 1
    ALLOW_PR: 1
  - TARGET: x86_64-pc-windows-msvc
    OTHER_TARGET: i686-pc-windows-msvc
    BITS: 64
    MAKE_TARGETS: test-unit-x86_64-pc-windows-msvc

install:
  - set PATH=C:\msys64\mingw%BITS%\bin;C:\msys64\usr\bin;%PATH%
  - if defined MINGW_URL appveyor DownloadFile %MINGW_URL%/%MINGW_ARCHIVE%
  - if defined MINGW_URL 7z x -y %MINGW_ARCHIVE% > nul
  - if defined MINGW_URL set PATH=%CD%\%MINGW_DIR%\bin;C:\msys64\usr\bin;%PATH%

  # FIXME(#3394) use master rustup
  - curl -sSfO https://static.rust-lang.org/rustup/archive/0.6.5/x86_64-pc-windows-msvc/rustup-init.exe
  - rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain nightly-2017-03-03
  - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
  - if NOT "%TARGET%" == "x86_64-pc-windows-msvc" rustup target add %TARGET%
  - if defined OTHER_TARGET rustup target add %OTHER_TARGET%
  - rustc -V
  - cargo -V
  - git submodule update --init

clone_depth: 1

build: false

test_script:
  - sh src/ci/run.sh %TARGET%

before_deploy:
  - ps: |
        New-Item -Path deploy -ItemType directory
        Get-ChildItem -Path target\${env:TARGET}\release\dist -Filter '*.tar.gz' | Move-Item -Destination deploy
        Get-FileHash .\deploy\* | ForEach-Object {
          [io.file]::WriteAllText($_.Path + ".sha256", $_.Hash.ToLower() + "`n")
        }
        Get-ChildItem -Path deploy | Foreach-Object {
          Push-AppveyorArtifact $_.FullName -FileName ${env:APPVEYOR_REPO_COMMIT}/$_
        }

deploy:
  - provider: S3
    skip_cleanup: true
    access_key_id: AKIAIWZDM2B2IJOWBGTA
    secret_access_key:
      secure: hyH54di5NyNdV+jjntM1dRN/NeUgDidwZmwcg4/UKpdJqGf1AAwYb2ulXYK67CXA
    bucket: rust-lang-ci
    set_public: true
    region: us-east-1
    folder: cargo-builds
    artifact: /.*\.(tar.gz|sha256)/
    on:
      branch: auto-cargo