-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
38 lines (38 loc) · 1.43 KB
/
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
33
34
35
36
37
38
version: 1.0.{build}
environment:
nodejs_version: "8"
access_token:
secure: sbBna4fwB5pwz2FWSkskL1UJZLvZmSQ5/tItIVC3ESN+gefKxwXIhj0IHXUATpmo
build:
verbosity: minimal
branches:
only:
- master
skip_tags: true
install:
# get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version
# install modules
- npm install
- npm install -g tfso/AppVeyor#1.0.110
- npm install -g mocha-appveyor-reporter
- npm install -g mocha
build_script:
- node node_modules\typescript\bin\tsc
- patch-version
test_script:
- mocha --reporter mocha-appveyor-reporter ./lib/test/ --no-exit
after_test:
# remove npm_modules as this should be installed whenever this package is used
- FOR /f %%n IN ('dir .\node_modules /d /b /a:d ^| findstr /R /C:"^[A-Za-z].*$"') DO npm uninstall %%n
deploy_script:
# git tagging source for github releases in addition to artifact to make npm usage useful
- rm .gitignore
- git config --global credential.helper store
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):[email protected]`n"
- git config --global user.email "[email protected]"
- git config --global user.name "24SevenOffice"
- git add --force ./lib
- git commit -a -m "Adding release files"
- git tag -a %appveyor_build_version% -m "%APPVEYOR_REPO_COMMIT_MESSAGE% %APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED%"
- git push origin %appveyor_build_version%