.travis.yml 1.77 KB
Newer Older
Pascal Hartig's avatar
Pascal Hartig committed
1 2 3 4
# You must sign into travis-ci.org and set the commit hook on your project for travis to
# run on your project. The secure: variable must be generated by running `travis encrypt`
# on a github oauth key that you can generate using curl.

Sindre Sorhus's avatar
Sindre Sorhus committed
5 6
sudo: false
language: node_js
Pascal Hartig's avatar
Pascal Hartig committed
7
node_js:
Sindre Sorhus's avatar
Sindre Sorhus committed
8
    - '0.12'
Pascal Hartig's avatar
Pascal Hartig committed
9
notifications:
Sindre Sorhus's avatar
Sindre Sorhus committed
10
    irc: 'irc.freenode.org#tastejs'
Pascal Hartig's avatar
Pascal Hartig committed
11 12 13 14 15 16 17 18 19 20 21 22 23
env:
    global:
        # GH_OAUTH_TOKEN is the oauth token generated as described at
        # https://help.github.com/articles/creating-an-oauth-token-for-command-line-use
        #
        # curl -u 'username' -d '{"scopes":["repo"],"note":"push to gh-pages from travis"}' https://api.github.com/authorizations
        #
        # It must be encrypted using the travis gem
        # http://about.travis-ci.org/docs/user/build-configuration/#Secure-environment-variables
        #
        # travis encrypt GH_OAUTH_TOKEN=XXXXXXXXXXXXXXX
        #
        # User specific env variables
Sindre Sorhus's avatar
Sindre Sorhus committed
24
        - secure: 'fHgfjMpYuliwMr2QLnjYZExIViNrxprf9dhXRBLZ6P9Hz7P6m1BMYrI/xEG8X+fFbCi0+n3AXh8SEMHi9ou/Pty/cx12z4w/z3B2BHMxh4XBwpZHs+AB4IXkLiwwWoP4QFy4vTipgYnMDMq9CRhlRbhZEpenQBmaTEc472By1uM='
Pascal Hartig's avatar
Pascal Hartig committed
25 26
        - GH_OWNER: tastejs
        - GH_PROJECT_NAME: todomvc
27 28 29 30 31 32
        - CHROME_PATH: '/home/travis/build/tastejs/todomvc/chrome-linux/chrome'
before_install:
    - export DISPLAY=:99.0
    - sh -e /etc/init.d/xvfb start
    - curl -Lo chrome.zip https://download-chromium.appspot.com/dl/Linux_x64 && unzip chrome.zip
    - curl -Lo chromedriver.zip http://chromedriver.storage.googleapis.com/2.16/chromedriver_linux64.zip && unzip chromedriver.zip
Pascal Hartig's avatar
Pascal Hartig committed
33 34 35
before_script:
    # install dependencies
    - npm install -g gulp
Sam Saccone's avatar
Sam Saccone committed
36
    - python -m SimpleHTTPServer > /dev/null 2>&1 &
37
    - sleep 2
Pascal Hartig's avatar
Pascal Hartig committed
38 39 40
script:
    # We want to gate on passing tests and a successful build
    - gulp
41
    - ./test-runner.sh