corpus

self-hosted listenbrainz and last.fm proxy
Log | Files | Refs | README | LICENSE

.build.yml (844B)


      1 image: archlinux
      2 packages:
      3   - nodejs
      4   - pnpm
      5   - duckdb
      6 sources:
      7   - https://git.sr.ht/~mtmn/corpus
      8 environment:
      9   NIX_CONFIG: "experimental-features = nix-command flakes"
     10 tasks:
     11   - setup-purescript: |
     12       cd corpus
     13       pnpm install purescript
     14       pnpm install spago
     15   - setup-elm: |
     16       curl -L -o /tmp/elm.gz https://github.com/elm/compiler/releases/download/0.19.1/binary-for-linux-64-bit.gz
     17       echo "e44af52bb27f725a973478e589d990a6428e115fe1bb14f03833134d6c0f155c  /tmp/elm.gz" | sha256sum -c -
     18       mkdir -p /home/build/bin
     19       gzip --decompress /tmp/elm.gz && mv /tmp/elm /home/build/bin
     20       chmod +x /home/build/bin/elm
     21   - build: |
     22       export PATH="$PATH:/home/build/bin"
     23       cd corpus
     24       pnpm install
     25       pnpm run build
     26   - test: |
     27       export PATH="$PATH:/home/build/bin"
     28       cd corpus
     29       pnpm test