-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
46 lines (44 loc) · 1.4 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
45
46
# environment variables
environment:
nodejs_version: "6"
access_token:
secure: YwffwDvba/ADlMJbtnOM7cKUqudcbYCt2K74HOtBvscwylmIMSRmrX2VKc+fuNjN
# scripts that run after cloning repository
install:
# install node
- ps: Install-Product node $Env:nodejs_version
- npm install -g npm
- npm install -g webpack
- ps: (Get-Content .\TypeScript-Angular1-Adv\version.ts).replace('[VERSION]', $env:APPVEYOR_BUILD_VERSION) | Set-Content .\TypeScript-Angular1-Adv\version.ts
- cd %APPVEYOR_BUILD_FOLDER%
- cd TypeScript-Angular1-Adv
- npm install
# scripts to run before build
build_script:
- webpack -p
# Post-install test scripts.
test_script:
# install node modules
# run webpack with production flag
- npm test
skip_commits:
message: /\[skip ci\]/
artifacts:
- path: TypeScript-Angular1-Adv/dist
deploy_script:
- git config --global credential.helper store
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):[email protected]`n"
- cd..
- ps: New-Item -ItemType Directory -Force docs
- ps: Remove-Item docs\*
- ps: Copy-Item TypeScript-Angular1-Adv\dist\* docs
- dir docs
- git config --global user.email "[email protected]"
- git config --global user.name "joymon"
- git checkout master
- git status
- git add docs
- git commit -m "[skip ci]" -- docs
- git status
- git push origin master
# Don't actually build. build: off