language: node_js
node_js:
  - "5.7.0"
script:
  - "node node_modules/pxt-core/built/pxt.js travis"  
  - "(cd libs/lang-test0; node ../../node_modules/pxt-core/built/pxt.js run)"
  - "(cd libs/lang-test1; node ../../node_modules/pxt-core/built/pxt.js run)"
  - "(cd libs/lang-test0; node ../../node_modules/pxt-core/built/pxt.js test)"
  - "(cd libs/lang-test1; node ../../node_modules/pxt-core/built/pxt.js test)"
  - "node node_modules/pxt-core/built/pxt.js testdir tests"
  - "(cd libs/hello; node ../../node_modules/pxt-core/built/pxt.js testconv https://az851932.vo.msecnd.net/files/td-converter-tests-v1.json)"
sudo: false
notifications:
  email:
    - touchdevelop-build@microsoft.com
cache:
  directories:
    - node_modules
    - built/cache
    - libs/hello/built/cache