aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZero~Informatique2020-04-28 15:48:25 +0200
committerZero~Informatique2020-04-29 20:47:26 +0200
commit8bf058f99db1d0ee50810af77829becdc337d26f (patch)
treeb6e6398e71db89e0ec45ac02ea56e2aa1cca5a43
parentccecfd9421f4550a71134cd46e1388e486f8c564 (diff)
downloadldgallery-8bf058f99db1d0ee50810af77829becdc337d26f.tar.gz
viewer: windows travis build
-rw-r--r--.travis.yml71
1 files changed, 68 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index fb1547d..8d2728b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,11 +4,12 @@ jobs:
4 include: 4 include:
5 - name: release-linux 5 - name: release-linux
6 language: generic 6 language: generic
7 dist: bionic
7 8
8 deploy: 9 deploy:
9 provider: releases 10 provider: releases
10 edge: true 11 edge: true
11 api_key: 12 token:
12 secure: zRJV96jl3zchT88YAtT6irCXgm96qVcIokVmCHrzcAXsRHgTHQURKcdpPzFdZQnNkxwfS1akA3fW5icr+U6WZIxIe56sHYEaBg7VXR1RiGW/qNOAhSvbJGva75iUllTiELa2FL2gEb8bNhVOy3+bQr5Z7RMeHFiC4FFmbMvaQhd5ss3yR5+bqKufEuJPDpFap93XHUoczXH+lXp1v90Cia1gskHsSl+YgfGWQAc89yOxETwFOSqr3CScZGV6oJpGM2rsflN5arFS/8JqDwuemttfrt74wDdKR4Mk94tcqXqMrledUsXR1NEjWAEWW6QMj05ztZ76TkT2hKpG+WVmUTaJjNKS+RJnf4WKzv1vo2EHZuAuPvwR21NGVYTxvV4o3Zvs4YODGXiUxQgeF5LFA3jbZw9ODyloStUV7zIPqzL7qJEIehnMtkjo2JPav5ORz6B7GwVrDC4LJHn95on3/3Voo3mPeyepoz1gFoh3iovTKAc+IXQXGOhT7cATP9DAWLO/Epct7hWPCEflm+oSS4rNiVbMW/61O3yIpxgkJ/oTsixLk6LOhWNdr2hfP95nAtD+It7LSsJABmWJ0FVO9RtQC7fLmEPaoGdZIdeRk/0yig9vA78Y+q46B6LBalmZO+0V60rdLdrnggJsyt3DZKM/4Z+QUwe494NodE7hU9U= 13 secure: zRJV96jl3zchT88YAtT6irCXgm96qVcIokVmCHrzcAXsRHgTHQURKcdpPzFdZQnNkxwfS1akA3fW5icr+U6WZIxIe56sHYEaBg7VXR1RiGW/qNOAhSvbJGva75iUllTiELa2FL2gEb8bNhVOy3+bQr5Z7RMeHFiC4FFmbMvaQhd5ss3yR5+bqKufEuJPDpFap93XHUoczXH+lXp1v90Cia1gskHsSl+YgfGWQAc89yOxETwFOSqr3CScZGV6oJpGM2rsflN5arFS/8JqDwuemttfrt74wDdKR4Mk94tcqXqMrledUsXR1NEjWAEWW6QMj05ztZ76TkT2hKpG+WVmUTaJjNKS+RJnf4WKzv1vo2EHZuAuPvwR21NGVYTxvV4o3Zvs4YODGXiUxQgeF5LFA3jbZw9ODyloStUV7zIPqzL7qJEIehnMtkjo2JPav5ORz6B7GwVrDC4LJHn95on3/3Voo3mPeyepoz1gFoh3iovTKAc+IXQXGOhT7cATP9DAWLO/Epct7hWPCEflm+oSS4rNiVbMW/61O3yIpxgkJ/oTsixLk6LOhWNdr2hfP95nAtD+It7LSsJABmWJ0FVO9RtQC7fLmEPaoGdZIdeRk/0yig9vA78Y+q46B6LBalmZO+0V60rdLdrnggJsyt3DZKM/4Z+QUwe494NodE7hU9U=
13 draft: true 14 draft: true
14 on: 15 on:
@@ -17,7 +18,7 @@ jobs:
17 - master 18 - master
18 - staging 19 - staging
19 overwrite: true 20 overwrite: true
20 skip_cleanup: true 21 cleanup: false
21 file: ldgallery-linux-amd64.tar.gz 22 file: ldgallery-linux-amd64.tar.gz
22 23
23 cache: 24 cache:
@@ -26,7 +27,8 @@ jobs:
26 - "$HOME/.stack" 27 - "$HOME/.stack"
27 28
28 before_install: 29 before_install:
29 - nvm install 12 30 - nvm install 12.16.2
31 - nvm use 12.16.2
30 - mkdir -p ~/.local/bin 32 - mkdir -p ~/.local/bin
31 - export PATH=$HOME/.local/bin:$PATH 33 - export PATH=$HOME/.local/bin:$PATH
32 - travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz 34 - travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz
@@ -56,3 +58,66 @@ jobs:
56 - pandoc --standalone --to man viewer/ldgallery-viewer.7.md --output dist/ldgallery-viewer.7 58 - pandoc --standalone --to man viewer/ldgallery-viewer.7.md --output dist/ldgallery-viewer.7
57 - cp changelog.md license.md dist/ 59 - cp changelog.md license.md dist/
58 - tar -cvzf ldgallery-linux-amd64.tar.gz dist 60 - tar -cvzf ldgallery-linux-amd64.tar.gz dist
61
62 #=============================================================
63
64 - name: release-win64
65 if: branch IN (master, staging)
66 language: shell
67 os: windows
68
69 deploy:
70 provider: releases
71 edge: true
72 token:
73 secure: zRJV96jl3zchT88YAtT6irCXgm96qVcIokVmCHrzcAXsRHgTHQURKcdpPzFdZQnNkxwfS1akA3fW5icr+U6WZIxIe56sHYEaBg7VXR1RiGW/qNOAhSvbJGva75iUllTiELa2FL2gEb8bNhVOy3+bQr5Z7RMeHFiC4FFmbMvaQhd5ss3yR5+bqKufEuJPDpFap93XHUoczXH+lXp1v90Cia1gskHsSl+YgfGWQAc89yOxETwFOSqr3CScZGV6oJpGM2rsflN5arFS/8JqDwuemttfrt74wDdKR4Mk94tcqXqMrledUsXR1NEjWAEWW6QMj05ztZ76TkT2hKpG+WVmUTaJjNKS+RJnf4WKzv1vo2EHZuAuPvwR21NGVYTxvV4o3Zvs4YODGXiUxQgeF5LFA3jbZw9ODyloStUV7zIPqzL7qJEIehnMtkjo2JPav5ORz6B7GwVrDC4LJHn95on3/3Voo3mPeyepoz1gFoh3iovTKAc+IXQXGOhT7cATP9DAWLO/Epct7hWPCEflm+oSS4rNiVbMW/61O3yIpxgkJ/oTsixLk6LOhWNdr2hfP95nAtD+It7LSsJABmWJ0FVO9RtQC7fLmEPaoGdZIdeRk/0yig9vA78Y+q46B6LBalmZO+0V60rdLdrnggJsyt3DZKM/4Z+QUwe494NodE7hU9U=
74 draft: true
75 on:
76 repo: pacien/ldgallery
77 branch:
78 - master
79 - staging
80 overwrite: true
81 cleanup: false
82 file: ldgallery-win64.zip
83
84 cache:
85 directories:
86 - viewer/node_modules
87 - "$ProgramData/haskell/workdir"
88
89 env:
90 - NVM_HOME="$ProgramData/nvm/"
91 - NVM_SYMLINK="$ProgramData/nvm/nodejs/"
92 - STACK_ROOT="$ProgramData/haskell/"
93
94 before_install:
95 - export "PATH=$NVM_HOME:$NVM_SYMLINK:$STACK_ROOT:$PATH"
96 - echo $PATH
97 - choco install nvm
98 - nvm install 12.16.2
99 - nvm use 12.16.2
100 - choco install haskell-stack
101
102 install:
103 - cd viewer
104 - npm install
105 - cd ..
106 - cd compiler
107 - stack setup --no-terminal
108 - cd ..
109
110 script:
111 - mkdir dist
112 - cd viewer
113 - npm run lint
114 - npm run build -- --dest ../dist/viewer
115 - cd ..
116 - cd compiler
117 - stack build --no-terminal
118 - stack install --local-bin-path ../dist/
119 - cd ..
120 - cp viewer/ldgallery-viewer.7.md dist/ldgallery-viewer.7.md
121 - cp compiler/ldgallery.1.md dist/ldgallery.1.md
122 - cp changelog.md license.md dist/
123 - 7z a -r -tzip ldgallery-win64.zip dist