dist: trusty
sudo: required

language: node_js
node_js: "stable"

env:
  - PATH=$HOME/purescript:$PATH

install:
  - TAG=$(wget -q -O - https://github.com/purescript/purescript/releases/latest --server-response --max-redirect 0 2>&1 | sed -n -e 's/.*Location:.*tag\///p')
  - wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
  - tar -xvf $HOME/purescript.tar.gz -C $HOME/
  - chmod a+x $HOME/purescript
  - npm i

script:
  - npm -s run build
  - npm -s test

dist: trusty
sudo: required

language: node_js
node_js: "stable"

env:
  - PATH=$HOME/purescript:$PATH

install:
  - TAG=$(basename $(curl --location --silent --output /dev/null -w %{url_effective} https://github.com/purescript/purescript/releases/latest))
  - curl --location --output $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
  - tar -xvf $HOME/purescript.tar.gz -C $HOME/
  - chmod a+x $HOME/purescript
  - npm i

script:
  - npm -s run build
  - npm -s test

Fix the retrieval of the latest compiler version tag
Fix the retrieval of the latest compiler version tag
