Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.06 KB

2016-09-18-purescript-on-travis-ci-as-of-sept-2016.md

File metadata and controls

24 lines (18 loc) · 1.06 KB

Purescript on Travis CI (as of Sept 2016)

tl;dr

Use the Trusty beta build environment.

language: node_js
sudo: required
dist: trusty
node_js: 6
install:
  - npm install -g bower purescript pulp
script:
  - npm install
  - bower install
  - npm test

Probably at some point you will run Purescript builds on Travis, and there doesn't seem to be much written on the internet about it. I found that if I didn't set up Travis correctly, I would end up with 10+ min build times.

But by taking advantage of the Trusty beta Build Environments, you can get fairly fast builds taking only a little over a minute. Just take the config above (swapping out npm test if you need) and add it as .travis.yml and you should be good to go.

Thanks to Gary Burgess and Christoph Hegemann for helping me look into this.