forked from nikitalita/cwtools-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
80 lines (75 loc) · 2.32 KB
/
.gitlab-ci.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
image: tboby/docker-fsharp-mono-netcore-electronnet
variables:
DOCKER_DRIVER: overlay2
GIT_DEPTH: "3"
stages:
- build
- release
build:
stage: build
script:
- git submodule update
- cd ..
- git clone https://www.github.com/tboby/cwtools || git -C ./cwtools pull
- cd cwtools-vscode
- npm install -g typescript
- npm install --unsafe-perm
#- CWTOOLSPATH=$(readlink -f "../cwtools")
#- git clone --verbose --mirror "../cwtools" "/root/.paket/git/db/cwtools"
#- cd /root/.paket/git/db/cwtools
#- echo $CWTOOLSPATH
#- git remote set-url origin $CWTOOLSPATH
# - GIT_TRACE=${CI_PROJECT_DIR}/git.log GIT_CURL_VERBOSE=${CI_PROJECT_DIR}/git.log GIT_TRACE_CURL=${CI_PROJECT_DIR}/git2.log git remote update --prune
#- cd $CI_PROJECT_DIR
- mono ./.paket/paket.exe clear-cache
# - PAKET_DETAILED_ERRORS=true GIT_CURL_VERBOSE=${CI_PROJECT_DIR}/git.log GIT_TRACE=${CI_PROJECT_DIR}/git.log GIT_TRACE_CURL=${CI_PROJECT_DIR}/git2.log mono ./.paket/paket.exe restore -v --log-file ${CI_PROJECT_DIR}/git3.log || cat ${CI_PROJECT_DIR}/git.log || cat ${CI_PROJECT_DIR}/git2.log || cat ${CI_PROJECT_DIR}/git3.log
# - cat ${CI_PROJECT_DIR}/git3.log
- chmod +x ./build.sh
- bash ./build.sh # || bash ./build.sh
cache:
paths:
- nupkgs/
- node_modules/
- .fake/
dry-release:
stage: release
script:
- git submodule update
- cd ..
- git clone https://www.github.com/tboby/cwtools || git -C ./cwtools pull
- cd cwtools-vscode
- npm install -g typescript
- npm install -g vsce
- npm install --unsafe-perm
- chmod +x ./build.sh
- bash ./build.sh DryRelease
cache:
paths:
- nupkgs/
- node_modules/
- .fake/
artifacts:
paths:
- temp/
expire_in: 1 week
when: manual
release:
stage: release
script:
- git submodule update
- cd ..
- git clone https://www.github.com/tboby/cwtools || git -C ./cwtools pull
- cd cwtools-vscode
- npm install -g typescript
- npm install -g vsce
- npm install --unsafe-perm
- mono ./.paket/paket.exe clear-cache
- echo "[{\"name\":\"tboby\",\"pat\":\"$VSCE_TOKEN\"}]" > ~/.vsce
- chmod +x ./build.sh
- bash ./build.sh Release
cache:
paths:
- nupkgs/
- node_modules/
- .fake/
when: manual