diff options
107 files changed, 5780 insertions, 2589 deletions
@@ -1 +1,6 @@ | |||
1 | # compiled man pages | ||
1 | *.1 | 2 | *.1 |
3 | *.7 | ||
4 | |||
5 | # editor and IDE | ||
6 | .idea | ||
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..826dd65 --- /dev/null +++ b/.travis.yml | |||
@@ -0,0 +1,125 @@ | |||
1 | language: generic | ||
2 | |||
3 | jobs: | ||
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 | |||