mirror of
https://github.com/thelounge/thelounge
synced 2024-11-14 00:07:17 +00:00
6dac7b1897
This allows for a more meaningful build: if a newer version of a sub-package breaks, builds would still pass as it uses the cached version. This uses a cache for downloaded packages instead. I am expecting this to slow down a little bit the builds (but we are OK overall) but be more accurate in practice. See https://docs.npmjs.com/cli/cache#configuration and https://docs.npmjs.com/files/folders#node-modules.
29 lines
512 B
YAML
29 lines
512 B
YAML
---
|
|
# http://www.appveyor.com/docs/appveyor-yml
|
|
|
|
# Build version format
|
|
version: "{build}"
|
|
|
|
# Do not build on tags (GitHub only)
|
|
skip_tags: true
|
|
|
|
environment:
|
|
nodejs_version: '4'
|
|
|
|
install:
|
|
- ps: Install-Product node $env:nodejs_version
|
|
- npm install
|
|
- npm install mocha-appveyor-reporter
|
|
- echo --reporter mocha-appveyor-reporter >> test/mocha.opts
|
|
|
|
test_script:
|
|
- node --version
|
|
- npm --version
|
|
- npm test
|
|
|
|
# cache npm modules
|
|
cache:
|
|
- '%AppData%/npm-cache'
|
|
|
|
# Don't actually build
|
|
build: off
|