diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 52 |
1 files changed, 37 insertions, 15 deletions
diff --git a/.travis.yml b/.travis.yml index e9f8948..98a00fc 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -2,30 +2,52 @@ language: generic | |||
2 | 2 | ||
3 | jobs: | 3 | jobs: |
4 | include: | 4 | include: |
5 | - name: viewer | 5 | - name: release-linux |
6 | language: node_js | 6 | language: generic |
7 | node_js: 12 | 7 | |
8 | deploy: | ||
9 | provider: releases | ||
10 | edge: true | ||
11 | api_key: | ||
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 | draft: true | ||
14 | on: | ||
15 | repo: pacien/ldgallery | ||
16 | branch: | ||
17 | - master | ||
18 | - staging | ||
19 | overwrite: true | ||
20 | skip_cleanup: true | ||
21 | file: | ||
22 | - viewer.tar.gz | ||
23 | |||
8 | cache: | 24 | cache: |
9 | directories: | 25 | directories: |
10 | - viewer/node_modules | 26 | - viewer/node_modules |
11 | install: | 27 | - "$HOME/.stack" |
12 | - cd viewer | ||
13 | - npm install | ||
14 | script: | ||
15 | - npm run lint | ||
16 | - npm run build | ||
17 | 28 | ||
18 | - name: compiler | ||
19 | language: haskell | ||
20 | cache: | ||
21 | directories: | ||
22 | - $HOME/.stack | ||
23 | before_install: | 29 | before_install: |
30 | - nvm install 12 | ||
24 | - mkdir -p ~/.local/bin | 31 | - mkdir -p ~/.local/bin |
25 | - export PATH=$HOME/.local/bin:$PATH | 32 | - export PATH=$HOME/.local/bin:$PATH |
26 | - travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack' | 33 | - travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz |
34 | | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack' | ||
35 | |||
27 | install: | 36 | install: |
37 | - cd viewer | ||
38 | - npm install | ||
39 | - cd .. | ||
28 | - cd compiler | 40 | - cd compiler |
29 | - stack setup --no-terminal | 41 | - stack setup --no-terminal |
42 | - cd .. | ||
43 | |||
30 | script: | 44 | script: |
45 | - cd viewer | ||
46 | - npm run lint | ||
47 | - npm run build | ||
48 | - cd .. | ||
49 | - tar -czvf viewer.tar.gz viewer/dist | ||
50 | - cp -r viewer/dist compiler/data/viewer | ||
51 | - cd compiler | ||
31 | - stack build --no-terminal | 52 | - stack build --no-terminal |
53 | - cd .. | ||