forked from craftyjs/Crafty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
32 lines (27 loc) · 880 Bytes
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Test against this version of Node.js.
environment:
nodejs_version: "6"
# preserve local npm and yarn modules but will reset them if package.json or appveyor.yml is modified
cache:
- node_modules -> appveyor.yml, package.json, yarn.lock
- '%LOCALAPPDATA%\Yarn -> appveyor.yml, package.json, yarn.lock'
version: '{build}'
# Install scripts. (runs after repo cloning)
install:
# Get the specified version of Node.js
- ps: Install-Product node $env:nodejs_version
# install modules
- yarn install
- npm install -g grunt-cli
# Post-install test scripts.
test_script:
# Output useful info for debugging.
- node --version
- npm --version
- yarn --version
# run tests
- npm test || set FAILEDTESTS=true
after_test:
- IF "%FAILEDTESTS%"=="true" ( echo Tests failed! & echo upload screenshots for debugging & exit 1 )
# Don't actually build.
build: off