.travis.yml 1.34 KB
branches:
  only:
    - "master"

before_install:
  - if [[ $ENGINE == 'phantomjs' ]]; then export ENGINE_DOWNLOAD='http://phantomjs.googlecode.com/files'; fi
  - if [[ $ENGINE == 'slimerjs' ]]; then export ENGINE_DOWNLOAD='http://download.slimerjs.org/v0.8'; fi

  - echo "Installing $ENGINE $ENGINE_VERSION"
  - wget $(echo $ENGINE_DOWNLOAD)/$(echo $ENGINE)-$(echo $ENGINE_VERSION)-linux-x86_64.tar.bz2 --output-document=engine.tar.bz2
  - mkdir engine && tar --strip-components=1 -xvf engine.tar.bz2 -C engine

  - if [[ $ENGINE == 'phantomjs' ]]; then ls -la engine/bin/phantomjs && engine/bin/phantomjs --version; fi
  - if [[ $ENGINE == 'slimerjs' ]]; then ls -la engine/slimerjs && engine/slimerjs --version; fi

install:
  - sudo apt-get install -qq mono-devel mono-mcs

before_script:
  - "npm install -g jshint@2.0.1"

script:
  - make test
  - make test-dotNET

env:
  matrix:
    - ENGINE="phantomjs" ENGINE_VERSION="1.8.2"
    - ENGINE="phantomjs" ENGINE_VERSION="1.9.0"
    - ENGINE="phantomjs" ENGINE_VERSION="1.9.1"
    - ENGINE="phantomjs" ENGINE_VERSION="1.9.2"
  global:
    - PHANTOMJS_EXECUTABLE="engine/bin/phantomjs --local-to-remote-url-access=yes --ignore-ssl-errors=yes"
    - SLIMERJS_EXECUTABLE="engine/slimerjs --local-to-remote-url-access=yes --ignore-ssl-errors=yes"

notifications:
  irc:
    channels:
      - "irc.freenode.org#casperjs"