commonplace/.travis.yml

36 строки
938 B
YAML

branches:
only:
- master
notifications:
irc:
channels:
- "irc.mozilla.org#amo-bots"
on_success: change
on_failure: change
email: false
language: node_js
node_js:
- "0.10"
before_script:
- "export PHANTOMJS_EXECUTABLE='phantomjs --local-to-remote-url-access=yes --ignore-ssl-errors=yes'"
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "npm install"
- "git clone git://github.com/n1k0/casperjs.git casperjs"
- "cd casperjs && git checkout 1.0.2 && cd .." # Use Homebrew's version of casper
# Create an installation.
- "git clone git://github.com/mozilla/marketplace-template.git"
- "cd marketplace-template"
- "npm install"
- "make install"
- "rm -rf node_modules/commonplace"
- "npm install ../"
script:
# Start the webserver.
- "make serve &"
- "sleep 3"
# Generate include files and test that they are there.
- "make build"
- "test -f src/media/js/include.js"