APTrust/dart

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
os: osx
osx_image: xcode13.3
language: node_js
node_js:
  - lts/*
cache:
  directories:
    - node_modules
    - "$HOME/.npm/_prebuilds"
    - "$HOME/.cache/electron"
    - "$HOME/.cache/electron-builder"
addons:
  homebrew:
    packages:
    - jq
before_install:
- |
  if [ "$TRAVIS_OS_NAME" == "osx" ]; then
    mkdir -p /tmp/git-lfs && curl -L https://github.com/github/git-lfs/releases/download/v2.3.1/git-lfs-$([ "$TRAVIS_OS_NAME" == "linux" ] && echo "linux" || echo "darwin")-amd64-2.3.1.tar.gz | tar -xz -C /tmp/git-lfs --strip-components 1
    export PATH="/tmp/git-lfs:$PATH"
  fi
install:
- npm install --global npm@latest
- rm -rf node_modules
- rm package-lock.json
- npm install
- sudo xcode-select -r
before_script:
- git lfs pull
- export BUILDVERSION="$(grep version package.json |sed "s/[^0-9.]//g").$(git log --format=%h -1)"
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then chmod +x ./build/add-osx-cert.sh; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then ./build/add-osx-cert.sh; fi
script:
  - npm test -- --runInBand
after_success:
# Skip build until we fix signing certificate.
# Otherwise, it runs for 20 minutes and then fails.
#- |
#  if [[ "$TRAVIS_BRANCH" == "master" ]] && [[ $TRAVIS_PULL_REQUEST == "false" ]]; then
#    security find-identity -v
#    electron-builder --config build/electron-builder-mac-ci.yml -ml --publish never
#    ls -alr dist
#  fi
- ./jsdoc.sh
notifications:
  slack:
    secure: fYGIkZMYp/HhRhi4/6Q1jpv0nWfpZaqaIKRhhloi+kBIt2fFun49LmTQfjqGLfwKKCKNmx8XzdIASUZuW7auJhHLUZPWaeEDxQjNVjrSOKOUuFUeGCKRJtw6+la0VxT79y5YIWxrnY2Noi8I6NvxniAJwnyQlHdyCnavmZzTA2xQGHxfTI4PR3ZkFt6lVAEC09NZMYwUf5+jsFmR6k/NGBU0jotDkfsm7AdzADSHwqfGvi70V9+muG4DIJejRVOkyCka2EOixbAyOOzbvrDwOo8tZVbY6Ch0LCfYndbDIztWXWb34R8LQEVKJA6QV2qMHmqSyMmR1RUO/OmMDmq+kM4C3M3D91knrugFVJiLJeowj8cb5LKgX35cd8/dHCDnLkSuaAw+rk5ny3TzfX2uh/EI9QN8y7S+er+QNvumy3M1+pkT+M+7t+auu0l7Ab+G/8W5X0PrZaQ+M933tYy1FC0zrp+CNs6BQnVvpql7REISJuuZ3T950FCxLM09XDGTnqxkgo8NrunuHcFgr8Jo74dl4TiixJteCVTOYI46KvfWDDlByKRmYb8GpQOXY4TT0dH5eEOjbcF3OFSQrx0aiC2TA6sTVHzvRqHdjjDGv2IXcJUJyLMnXrUsMVl4MuDCWGsqwKSEh71mflkreSc4yZ17M5ZEUBh90/dA9eICk9c=
deploy:
# Skip S3 upload because it overwrites official releases when it shouldn't.
#  - provider: s3
#    access_key_id: $AWS_ACCESS_KEY
#    secret_access_key: $AWS_SECRET_KEY
#    bucket: aptrust.public.download
#    skip_cleanup: true
#    local_dir: dist
#    glob: "*.(dmg|deb)"
#    upload_dir: DART
#    acl: public_read
#    on:
#      repo: APTrust/dart
#      branch: master
  - provider: pages
    skip_cleanup: true
    token: "$GH_TOKEN"
    keep_history: true
    verbose: true
    local_dir: docs