-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
44 lines (34 loc) · 1.18 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
39
40
41
42
43
44
stack: node 12
version: 1.1.{build}
environment:
access_token:
secure: sbBna4fwB5pwz2FWSkskL1UJZLvZmSQ5/tItIVC3ESN+gefKxwXIhj0IHXUATpmo
branches:
only:
- master
skip_tags: true
install:
- npm install
build_script:
- node node_modules/typescript/bin/tsc
- echo Patching version $APPVEYOR_BUILD_VERSION
- node ./bin/patch-version
test_script:
# run tests
- node node_modules/mocha/bin/_mocha tests/ --no-exit
after_test:
- npm prune --production
artifacts:
- path: '\'
name: tfso.tools.appveyor
deploy_script:
# git tagging source for github releases in addition to artifact to make npm usage useful
- git config --global credential.helper "store --file $HOME/.git-credentials"
- ps: Add-Content -Path "$HOME/.git-credentials" -Value "https://$($env:access_token):[email protected]`n" -NoNewline
- git config --global user.email "[email protected]"
- git config --global user.name "24SevenOffice"
- git rm .gitignore
- git add -f --all
- 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