aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorzeroinformatique2021-06-29 01:27:46 +0200
committerGitHub2021-06-29 01:27:46 +0200
commit622af23bb3ce8d6dc8dc1d658cb7f01bc905ef2c (patch)
tree09098afd8ba30d35267460eb4ec63520c2c07678 /.travis.yml
parent153615a69e463ebb859cded5cfe8fb27acd6e722 (diff)
parent4964ee35dfb4b9b58f5791b20df13e34fa89e3ed (diff)
downloadldgallery-622af23bb3ce8d6dc8dc1d658cb7f01bc905ef2c.tar.gz
Merge pull request #293 from ldgallery/pacien-20210628-ci-gha-init
ci: configure GitHub Actions
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml125
1 files changed, 0 insertions, 125 deletions
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 23be533..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,125 +0,0 @@
1language: generic
2
3jobs:
4 include:
5 - name: release-linux
6 language: generic
7 dist: bionic
8
9 deploy:
10 provider: releases
11 edge: true
12 token:
13 secure: zRJV96jl3zchT88YAtT6irCXgm96qVcIokVmCHrzcAXsRHgTHQURKcdpPzFdZQnNkxwfS1akA3fW5icr+U6WZIxIe56sHYEaBg7VXR1RiGW/qNOAhSvbJGva75iUllTiELa2FL2gEb8bNhVOy3+bQr5Z7RMeHFiC4FFmbMvaQhd5ss3yR5+bqKufEuJPDpFap93XHUoczXH+lXp1v90Cia1gskHsSl+YgfGWQAc89yOxETwFOSqr3CScZGV6oJpGM2rsflN5arFS/8JqDwuemttfrt74wDdKR4Mk94tcqXqMrledUsXR1NEjWAEWW6QMj05ztZ76TkT2hKpG+WVmUTaJjNKS+RJnf4WKzv1vo2EHZuAuPvwR21NGVYTxvV4o3Zvs4YODGXiUxQgeF5LFA3jbZw9ODyloStUV7zIPqzL7qJEIehnMtkjo2JPav5ORz6B7GwVrDC4LJHn95on3/3Voo3mPeyepoz1gFoh3iovTKAc+IXQXGOhT7cATP9DAWLO/Epct7hWPCEflm+oSS4rNiVbMW/61O3yIpxgkJ/oTsixLk6LOhWNdr2hfP95nAtD+It7LSsJABmWJ0FVO9RtQC7fLmEPaoGdZIdeRk/0yig9vA78Y+q46B6LBalmZO+0V60rdLdrnggJsyt3DZKM/4Z+QUwe494NodE7hU9U=
14 on:
15 tags: true
16 overwrite: true
17 cleanup: false
18 file: ldgallery-linux-amd64.tar.gz
19
20 cache:
21 directories:
22 - viewer/node_modules
23 - "$HOME/.stack"
24
25 before_install:
26 - nvm install 12.16.2
27 - nvm use 12.16.2
28 - mkdir -p ~/.local/bin
29 - export PATH=$HOME/.local/bin:$PATH
30 - travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz
31 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
32 - sudo apt-get update -qq
33 - sudo apt-get install -y pandoc
34
35 install:
36 - cd viewer
37 - npm install
38 - cd ..
39 - cd compiler
40 - stack setup --no-terminal
41 - cd ..
42
43 script:
44 - mkdir dist
45 - cd viewer
46 - npm run lint
47 - npm run build -- --dest ../dist/viewer
48 - cd ..
49 - cd compiler
50 - stack build --no-terminal
51 - stack install --local-bin-path ../dist/
52 - cd ..
53 - pandoc --standalone --to man ldgallery-quickstart.7.md --output dist/ldgallery-quickstart.7
54 - pandoc --standalone --to man compiler/ldgallery.1.md --output dist/ldgallery.1
55 - pandoc --standalone --to man viewer/ldgallery-viewer.7.md --output dist/ldgallery-viewer.7
56 - cp changelog.md license.md dist/
57 - tar -cvzf ldgallery-linux-amd64.tar.gz dist
58
59 #=============================================================
60
61 - name: release-win64
62 if: tag IS present OR branch IN (master, staging)
63 language: shell
64 os: windows
65
66 deploy:
67 provider: releases
68 edge: true
69 token:
70 secure: zRJV96jl3zchT88YAtT6irCXgm96qVcIokVmCHrzcAXsRHgTHQURKcdpPzFdZQnNkxwfS1akA3fW5icr+U6WZIxIe56sHYEaBg7VXR1RiGW/qNOAhSvbJGva75iUllTiELa2FL2gEb8bNhVOy3+bQr5Z7RMeHFiC4FFmbMvaQhd5ss3yR5+bqKufEuJPDpFap93XHUoczXH+lXp1v90Cia1gskHsSl+YgfGWQAc89yOxETwFOSqr3CScZGV6oJpGM2rsflN5arFS/8JqDwuemttfrt74wDdKR4Mk94tcqXqMrledUsXR1NEjWAEWW6QMj05ztZ76TkT2hKpG+WVmUTaJjNKS+RJnf4WKzv1vo2EHZuAuPvwR21NGVYTxvV4o3Zvs4YODGXiUxQgeF5LFA3jbZw9ODyloStUV7zIPqzL7qJEIehnMtkjo2JPav5ORz6B7GwVrDC4LJHn95on3/3Voo3mPeyepoz1gFoh3iovTKAc+IXQXGOhT7cATP9DAWLO/Epct7hWPCEflm+oSS4rNiVbMW/61O3yIpxgkJ/oTsixLk6LOhWNdr2hfP95nAtD+It7LSsJABmWJ0FVO9RtQC7fLmEPaoGdZIdeRk/0yig9vA78Y+q46B6LBalmZO+0V60rdLdrnggJsyt3DZKM/4Z+QUwe494NodE7hU9U=
71 on:
72 tags: true
73 overwrite: true
74 cleanup: false
75 file: ldgallery-win64.zip
76
77 cache:
78 directories:
79 - viewer/node_modules
80 - "$HOME/.stack"
81
82 env:
83 - NVM_HOME="$ProgramData/nvm/"
84 - NVM_SYMLINK="$ProgramData/nvm/nodejs/"
85 - STACK_ROOT="$ProgramData/haskell/"
86
87 before_install:
88 - export "PATH=$NVM_HOME:$NVM_SYMLINK:$STACK_ROOT:$PATH"
89 - echo $PATH
90 - choco install nvm
91 - nvm install 12.16.2
92 - nvm use 12.16.2
93 - choco install haskell-stack
94
95 install:
96 - cd viewer
97 - npm install
98 - cd ..
99 - cd compiler
100 - stack setup --no-terminal
101 - cd ..
102
103 script:
104 - mkdir dist
105 - cd viewer
106 - npm run lint
107 - npm run build -- --dest ../dist/viewer
108 - cd ..
109 - cd compiler
110 - stack build --no-terminal
111 - stack install --local-bin-path ../dist/
112 - cd ..
113 - mkdir dist/scripts
114 - cp scripts/win_* dist/scripts/
115 - cp ldgallery-quickstart.7.md dist/ldgallery-quickstart.7.md
116 - cp viewer/ldgallery-viewer.7.md dist/ldgallery-viewer.7.md
117 - cp compiler/ldgallery.1.md dist/ldgallery.1.md
118 - cp changelog.md license.md dist/
119 - curl --fail --output magick.zip -L https://imagemagick.org/download/binaries/ImageMagick-7.0.10-30-portable-Q16-x64.zip
120 - 7z e magick.zip -odist/ magick.exe
121 - 7z e magick.zip -so LICENSE.txt > dist/magick.license.txt
122 - 7z e magick.zip -so NOTICE.txt > dist/magick.notice.txt
123 - 7z e magick.zip -so README.txt > dist/magick.readme.txt
124 - 7z a -r -tzip ldgallery-win64.zip ./dist/*
125