mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 20:43:08 +00:00
552fa3fae8
This has several reasons, benefits and consequences: - When running on root (which is not recommended anyway), `npm run build` was already necessary. - This allows to not use the `prepublish` hook, whose behavior is going to change in npm v5 and again in npm v6. - This allows to create both production and development builds when running from source. - It makes `npm run build` compatible with Windows again for development environments (lost in previous commit). - It uses the `prepublishOnly` hook added in npm v4. Since this hook is not available prior to that, deployment to npm from Travis has to be done on the Node.js v7 environment.
30 lines
561 B
YAML
30 lines
561 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
|
|
- appveyor-retry npm install
|
|
- npm run build
|
|
- 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 -> package.json'
|
|
|
|
# Don't actually build
|
|
build: off
|