forked from qcif/data-curator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
82 lines (74 loc) · 1.93 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: 1.4.{build}
# skip_non_tags: true
image: Visual Studio 2017
platform:
- x64
#cache:
# - node_modules
# - '%APPDATA%\npm-cache'
# - '%USERPROFILE%\.electron'
# - '%USERPROFILE%\AppData\Local\Yarn\cache'
environment:
GH_TOKEN:
secure: 2+1HLAk/YGWqOMnjgsx5nII2huvHAlPkO24vJBqggRmcyy9FhiekaaMDTsRiRnRX
COVERALLS_REPO_TOKEN:
secure: 5CQKw1+Is8KphKjmT2emU/C7eNlZN3OEteemQZjOjJl47BVABYr1SOZ+IX82NSWy
init:
- git config --global core.autocrlf input
install:
- ps: Install-Product node 8 x64
- choco upgrade yarn
- git reset --hard HEAD
- yarn
- node --version
- yarn autoclean
- yarn run clean
- yarn run lint
configuration: Debug
for:
-
test: off
build_script:
- ps: if ($env:APPVEYOR_REPO_TAG -eq "true") { yarn run release:predraft }
configuration: Release
deploy:
provider: Environment
name: production
on:
appveyor_repo_tag: true
-
branches:
only:
- ci
test_script:
- git config --global user.email "appveyor@appveyor.com"
- git config --global user.name "AppVeyorBot"
- git stash
- ps: $(git remote set-branches --add origin develop | Out-Host; $?) -or $(exit 1 | Out-Host; $?)
- ps: $(git fetch origin develop | Out-Host; $?) -or $(exit 1 | Out-Host; $?)
- ps: $(git checkout --track origin/develop | Out-Host; $?) -or $(exit 1 | Out-Host; $?)
- ps: $(git checkout $env:APPVEYOR_REPO_BRANCH | Out-Host; $?) -or $(exit 1 | Out-Host; $?)
- ps: $(git checkout develop -- src | Out-Host; $?) -or $(exit 1 | Out-Host; $?)
- yarn
- yarn run clean
- yarn run unit
- yarn run pack
- yarn run cucumber:postpack:impl
after_test:
- yarn run cucumber:report:badge
build: off
deploy: off
configuration: Mergeandtest
-
branches:
only:
- testci
- master
test_script:
- yarn run clean
- yarn run unit
- yarn run pack
- yarn run cucumber:postpack:impl
build: off
deploy: off
configuration: Test