APTrust/dart

View on GitHub
.appveyor.yml

Summary

Maintainability
Test Coverage
version: "2.0.0.{build}"

platform: x64

init:
  - git config --global core.autocrlf false
    # TODO: Needs select-str to get version from package.json to save in env and update below
    #  - ps: Update-AppveyorBuild -Version "0.1.9-$($env:APPVEYOR_REPO_COMMIT.substring(0,7))-Windows"
    #  - set BUILDVER=%APPVEYOR_BUILD_VERSION%-$($env:APPVEYOR_REPO_COMMIT.substring(0,7))

cache:
  - node_modules
  - '%APPDATA%\npm-cache'
  - '%USERPROFILE%\.electron'

environment:
  access_token:
    secure: "0muZEDVGEpw8OhnyWFnafYkUgrt+7kl6MdWEA2guW8oLX6s3dMoRrhQjuF3Sbpi5"

install:
        #- ps: Update-NodeJsInstallation 12.16.1
  - ps: Install-Product node LTS
  - node --version
  - git reset --hard HEAD
  - rm -rf node_modules
  - rm package-lock.json
  - npm install --global npm@latest
  - set PATH=%APPVEYOR_BUILD_FOLDER%/node_modules/.bin;%APPVEYOR_BUILD_FOLDER%/node_modules/;C:\Users\appveyor\AppData\Roaming\npm\node_modules;%PATH%
  - npm install

build_script:
  - npm test -- --runInBand
  - electron-builder --publish never

# after_build:
#   - ps: Get-ChildItem .\dist\*.exe | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName S3-public-deployment }

# Deploy to S3 only on new tag or master branch.
# See https://www.appveyor.com/docs/branches/

# deploy:
#   - provider: S3
#     name: S3-public-deployment
#     on:
#       APPVEYOR_REPO_TAG: true
#     access_key_id:
#       secure: Ftjof6Ssg2Mt94VyNcUSawjGKm7VKiHx35cGbXzqy58=
#     secret_access_key:
#       secure: z4agUrd9hU8g49gUaP5wiTxnOTpH7QSS+UQVCGQoW1rXYuW8/d8C7NAtiES7uFbt
#     bucket: aptrust.public.download
#     region: us-east-1
#     set_public: true
#     folder: DART
#     reduced_redundancy: true

#   - provider: S3
#     name: S3-public-deployment
#     on:
#       branch: master
#     access_key_id:
#       secure: Ftjof6Ssg2Mt94VyNcUSawjGKm7VKiHx35cGbXzqy58=
#     secret_access_key:
#       secure: z4agUrd9hU8g49gUaP5wiTxnOTpH7QSS+UQVCGQoW1rXYuW8/d8C7NAtiES7uFbt
#     bucket: aptrust.public.download
#     region: us-east-1
#     set_public: true
#     folder: DART
#     reduced_redundancy: true

test: off
notifications:
  - provider: Slack
    incoming_webhook:
      secure: wQc/CYuw0WsjVvpj92QtP6//CzBNp/eFYpvlxiH6lIdhCbrh+cgQ3vExTygXJFA3xPg0attMwE/dOWipSS+vsk0EGsf0iipIaf/133/1RgQ=
    on_build_success: false
    on_build_failure: true
    on_build_status_changed: true