2022-01-11 16:51:15 +00:00
|
|
|
# version format
|
|
|
|
version: '{build}'
|
|
|
|
|
|
|
|
# branches to build
|
|
|
|
branches:
|
|
|
|
# whitelist
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
|
|
|
# Do not build on tags (GitHub, Bitbucket, GitLab, Gitea)
|
|
|
|
skip_tags: true
|
|
|
|
|
|
|
|
# Maximum number of concurrent jobs for the project
|
|
|
|
max_jobs: 1
|
|
|
|
clone_depth: 1
|
|
|
|
|
|
|
|
# Build worker image (VM template)
|
|
|
|
build_cloud: Docker
|
|
|
|
|
|
|
|
environment:
|
|
|
|
docker_image: node:16-alpine
|
|
|
|
npm_config_cache: /appveyor/projects/cache
|
|
|
|
|
|
|
|
test_script:
|
|
|
|
- sh: |
|
2022-01-27 18:31:21 +00:00
|
|
|
chown -R node:node /appveyor/projects
|
2022-01-11 16:51:15 +00:00
|
|
|
npm install
|
|
|
|
npm test
|