"Fossies" - the Fresh Open Source Software Archive

Member "fd-8.1.1/appveyor.yml" (25 May 2020, 2397 Bytes) of package /linux/privat/fd-8.1.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "appveyor.yml": 7.5.0_vs_8.0.0.

    1 # Source: https://github.com/starkat99/appveyor-rust/
    2 
    3 environment:
    4   global:
    5     PROJECT_NAME: fd
    6   matrix:
    7     # Stable channel
    8     - TARGET: i686-pc-windows-gnu
    9       CHANNEL: stable
   10     - TARGET: i686-pc-windows-msvc
   11       CHANNEL: stable
   12     - TARGET: x86_64-pc-windows-gnu
   13       CHANNEL: stable
   14     - TARGET: x86_64-pc-windows-msvc
   15       CHANNEL: stable
   16 
   17 # Install Rust and Cargo
   18 # (Based on from https://github.com/rust-lang/libc/blob/master/appveyor.yml)
   19 install:
   20   - curl -sSf -o rustup-init.exe https://win.rustup.rs
   21   - rustup-init.exe --default-host %TARGET% --default-toolchain %CHANNEL% -y
   22   - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
   23   - rustc -Vv
   24   - cargo -V
   25 
   26 # 'cargo test' takes care of building for us, so disable Appveyor's build stage. This prevents
   27 # the "directory does not contain a project or solution file" error.
   28 # source: https://github.com/starkat99/appveyor-rust/blob/master/appveyor.yml#L113
   29 build: false
   30 
   31 # Equivalent to Travis' `script` phase
   32 test_script:
   33   - cargo build --verbose
   34   - cargo run
   35   - cargo test
   36 
   37 before_deploy:
   38   # Generate artifacts for release
   39   - cargo build --release
   40   - mkdir staging
   41   - copy target\release\fd.exe staging
   42   - ps: copy target\release\build\fd-find*\out\_fd.ps1 staging
   43   - cd staging
   44     # release zipfile will look like 'rust-everywhere-v1.2.3-x86_64-pc-windows-msvc'
   45   - 7z a ../%PROJECT_NAME%-%APPVEYOR_REPO_TAG_NAME%-%TARGET%.zip *
   46   - appveyor PushArtifact ../%PROJECT_NAME%-%APPVEYOR_REPO_TAG_NAME%-%TARGET%.zip
   47 
   48 deploy:
   49   description: 'Windows release'
   50   # All the zipped artifacts will be deployed
   51   artifact: /.*\.zip/
   52   # Here's how:
   53   # - Go to 'https://github.com/settings/tokens/new' and generate a Token with only the
   54   # `public_repo` scope enabled
   55   # - Then go to 'https://ci.appveyor.com/tools/encrypt' and enter the newly generated token.
   56   # - Enter the "encrypted value" below
   57   auth_token:
   58     secure: mWJ8ieZdGEgHf232fdMyzb9T1rKbkJivYbp/REMo8ax3X5vkQJDHhFjWeuWA3wIC
   59   provider: GitHub
   60   # deploy when a new tag is pushed and only on the stable channel
   61   on:
   62     # channel to use to produce the release artifacts
   63     CHANNEL: stable
   64     appveyor_repo_tag: true
   65 
   66 branches:
   67   only:
   68     - master
   69     # IMPORTANT Regex to match tags. Required, or appveyor may not trigger deploys when a new tag
   70     # is pushed. This regex matches semantic versions like v1.2.3-rc4+2016.02.22
   71     - /^v\d+\.\d+\.\d+.*$/