-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (26 loc) · 1.23 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
language: node_js
node_js:
- 0.8
env:
- DEFT_SENCHA_CMD_VERSION="4.0.1.45"
before_script:
# Framebuffer for Firefox
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
# Install JSDuck dependency
- "gem install jsduck"
# Download, unzip and symlink Sencha Ext JS dependency
- "wget http://cdn.sencha.com/ext/commercial/ext-4.2.1-commercial.zip"
- "unzip -q ext-4.2.1-commercial.zip"
- "ln -sv `pwd`/ext-4.2.1.883 $TRAVIS_BUILD_DIR/../ext"
# Install Sencha Cmd
- "wget http://cdn.sencha.com/cmd/$DEFT_SENCHA_CMD_VERSION/SenchaCmd-$DEFT_SENCHA_CMD_VERSION-linux-x64.run.zip"
- "unzip -q SenchaCmd-$DEFT_SENCHA_CMD_VERSION-linux-x64.run.zip"
- "chmod +x SenchaCmd-$DEFT_SENCHA_CMD_VERSION-linux-x64.run"
- "./SenchaCmd-$DEFT_SENCHA_CMD_VERSION-linux-x64.run --mode unattended"
# Make Sencha Cmd and CoffeeScript available in the PATH
- "export PATH=~/bin/Sencha/Cmd/$DEFT_SENCHA_CMD_VERSION/:$TRAVIS_BUILD_DIR/node_modules/karma/bin:$TRAVIS_BUILD_DIR/node_modules/coffee-script/bin:$PATH"
# Change directory to the package and build the package
- "cd $TRAVIS_BUILD_DIR/packages/deft && sencha package build"
# Change directory back to the root of the repository ready for running tests
- "cd $TRAVIS_BUILD_DIR"