Sengi-Windows-MacOS-Linux/appveyor.yml

45 lines
1008 B
YAML
Raw Normal View History

2019-04-05 05:23:09 +02:00
os: unstable
cache:
- node_modules
environment:
GH_TOKEN:
secure: wRRBU0GXTmTBgZBs2PGSaEJWOflynAyvp3Nc/7e9xmciPfkUCQAXcpOn0jIYmzpb
matrix:
2019-04-05 05:27:06 +02:00
- nodejs_version: 10.9.0
2019-04-05 05:23:09 +02:00
install:
- ps: Install-Product node $env:nodejs_version
- set CI=true
- npm install -g npm@latest
- set PATH=%APPDATA%\npm;%PATH%
- npm install
matrix:
fast_finish: true
build: off
version: '{build}'
shallow_clone: true
clone_depth: 1
test_script:
2019-04-07 00:57:27 +02:00
- ps: >-
npm run test-nowatch
2019-04-07 01:06:08 +02:00
2019-04-07 00:57:27 +02:00
$wc = New-Object 'System.Net.WebClient'
2019-04-07 01:06:08 +02:00
2019-04-07 00:57:27 +02:00
Get-ChildItem . -Name -Recurse 'TESTS-*.xml' |
2019-04-07 01:10:58 +02:00
2019-04-07 00:57:27 +02:00
Foreach-Object {
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path $_))
}
2019-04-07 01:02:46 +02:00
- npm run dist
2019-04-07 01:06:08 +02:00
artifacts:
2019-04-07 01:10:58 +02:00
- path: dist
deploy:
- provider: FTP
host: home205977321.1and1-data.host
protocol: sftp
username: u45308485-sengi
password:
secure: Sk3NZwuaYK9hTIQ3kgIIQEc8SmaPDVGvGpgsZzFEzoVLuy4WxVfvKQtegW9oXaj7
folder: /
application: dist.zip
on:
branch: master