2022-01-08 16:02:35 +00:00
|
|
|
# version format
|
2022-01-08 16:05:54 +00:00
|
|
|
version: '{build}'
|
2022-01-08 16:02:35 +00:00
|
|
|
|
|
|
|
# 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
|
2022-01-10 08:56:55 +00:00
|
|
|
clone_depth: 1
|
2022-01-08 16:02:35 +00:00
|
|
|
|
|
|
|
# Build worker image (VM template)
|
|
|
|
build_cloud: Docker
|
2022-01-10 08:56:55 +00:00
|
|
|
|
|
|
|
environment:
|
|
|
|
docker_image: node:16-alpine
|
|
|
|
npm_config_cache: /appveyor/projects/cache
|
2022-01-08 16:02:35 +00:00
|
|
|
|
|
|
|
build_script:
|
2022-01-10 08:56:55 +00:00
|
|
|
- sh: |
|
|
|
|
chown -R node:node /appveyor/projects
|
|
|
|
npm install
|
|
|
|
npm list --all
|
2022-01-08 16:02:35 +00:00
|
|
|
|
|
|
|
test_script:
|
2022-01-10 08:56:55 +00:00
|
|
|
- sh: |
|
|
|
|
npm run test:linux
|