From 8bf058f99db1d0ee50810af77829becdc337d26f Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Tue, 28 Apr 2020 15:48:25 +0200 Subject: viewer: windows travis build --- .travis.yml | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file 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: include: - name: release-linux language: generic + dist: bionic deploy: provider: releases edge: true - api_key: + token: secure: zRJV96jl3zchT88YAtT6irCXgm96qVcIokVmCHrzcAXsRHgTHQURKcdpPzFdZQnNkxwfS1akA3fW5icr+U6WZIxIe56sHYEaBg7VXR1RiGW/qNOAhSvbJGva75iUllTiELa2FL2gEb8bNhVOy3+bQr5Z7RMeHFiC4FFmbMvaQhd5ss3yR5+bqKufEuJPDpFap93XHUoczXH+lXp1v90Cia1gskHsSl+YgfGWQAc89yOxETwFOSqr3CScZGV6oJpGM2rsflN5arFS/8JqDwuemttfrt74wDdKR4Mk94tcqXqMrledUsXR1NEjWAEWW6QMj05ztZ76TkT2hKpG+WVmUTaJjNKS+RJnf4WKzv1vo2EHZuAuPvwR21NGVYTxvV4o3Zvs4YODGXiUxQgeF5LFA3jbZw9ODyloStUV7zIPqzL7qJEIehnMtkjo2JPav5ORz6B7GwVrDC4LJHn95on3/3Voo3mPeyepoz1gFoh3iovTKAc+IXQXGOhT7cATP9DAWLO/Epct7hWPCEflm+oSS4rNiVbMW/61O3yIpxgkJ/oTsixLk6LOhWNdr2hfP95nAtD+It7LSsJABmWJ0FVO9RtQC7fLmEPaoGdZIdeRk/0yig9vA78Y+q46B6LBalmZO+0V60rdLdrnggJsyt3DZKM/4Z+QUwe494NodE7hU9U= draft: true on: @@ -17,7 +18,7 @@ jobs: - master - staging overwrite: true - skip_cleanup: true + cleanup: false file: ldgallery-linux-amd64.tar.gz cache: @@ -26,7 +27,8 @@ jobs: - "$HOME/.stack" before_install: - - nvm install 12 + - nvm install 12.16.2 + - nvm use 12.16.2 - mkdir -p ~/.local/bin - export PATH=$HOME/.local/bin:$PATH - travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz @@ -56,3 +58,66 @@ jobs: - pandoc --standalone --to man viewer/ldgallery-viewer.7.md --output dist/ldgallery-viewer.7 - cp changelog.md license.md dist/ - tar -cvzf ldgallery-linux-amd64.tar.gz dist + + #============================================================= + + - name: release-win64 + if: branch IN (master, staging) + language: shell + os: windows + + deploy: + provider: releases + edge: true + token: + secure: zRJV96jl3zchT88YAtT6irCXgm96qVcIokVmCHrzcAXsRHgTHQURKcdpPzFdZQnNkxwfS1akA3fW5icr+U6WZIxIe56sHYEaBg7VXR1RiGW/qNOAhSvbJGva75iUllTiELa2FL2gEb8bNhVOy3+bQr5Z7RMeHFiC4FFmbMvaQhd5ss3yR5+bqKufEuJPDpFap93XHUoczXH+lXp1v90Cia1gskHsSl+YgfGWQAc89yOxETwFOSqr3CScZGV6oJpGM2rsflN5arFS/8JqDwuemttfrt74wDdKR4Mk94tcqXqMrledUsXR1NEjWAEWW6QMj05ztZ76TkT2hKpG+WVmUTaJjNKS+RJnf4WKzv1vo2EHZuAuPvwR21NGVYTxvV4o3Zvs4YODGXiUxQgeF5LFA3jbZw9ODyloStUV7zIPqzL7qJEIehnMtkjo2JPav5ORz6B7GwVrDC4LJHn95on3/3Voo3mPeyepoz1gFoh3iovTKAc+IXQXGOhT7cATP9DAWLO/Epct7hWPCEflm+oSS4rNiVbMW/61O3yIpxgkJ/oTsixLk6LOhWNdr2hfP95nAtD+It7LSsJABmWJ0FVO9RtQC7fLmEPaoGdZIdeRk/0yig9vA78Y+q46B6LBalmZO+0V60rdLdrnggJsyt3DZKM/4Z+QUwe494NodE7hU9U= + draft: true + on: + repo: pacien/ldgallery + branch: + - master + - staging + overwrite: true + cleanup: false + file: ldgallery-win64.zip + + cache: + directories: + - viewer/node_modules + - "$ProgramData/haskell/workdir" + + env: + - NVM_HOME="$ProgramData/nvm/" + - NVM_SYMLINK="$ProgramData/nvm/nodejs/" + - STACK_ROOT="$ProgramData/haskell/" + + before_install: + - export "PATH=$NVM_HOME:$NVM_SYMLINK:$STACK_ROOT:$PATH" + - echo $PATH + - choco install nvm + - nvm install 12.16.2 + - nvm use 12.16.2 + - choco install haskell-stack + + install: + - cd viewer + - npm install + - cd .. + - cd compiler + - stack setup --no-terminal + - cd .. + + script: + - mkdir dist + - cd viewer + - npm run lint + - npm run build -- --dest ../dist/viewer + - cd .. + - cd compiler + - stack build --no-terminal + - stack install --local-bin-path ../dist/ + - cd .. + - cp viewer/ldgallery-viewer.7.md dist/ldgallery-viewer.7.md + - cp compiler/ldgallery.1.md dist/ldgallery.1.md + - cp changelog.md license.md dist/ + - 7z a -r -tzip ldgallery-win64.zip dist -- cgit v1.2.3