-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
26 lines (26 loc) · 1.29 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.10.30
env:
- DEFT_SENCHA_EXT_VERSION="6.0.0" DEFT_SENCHA_CMD_VERSION="6.0.1.76"
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/gpl/ext-$DEFT_SENCHA_EXT_VERSION-gpl.zip"
- "unzip -q ext-$DEFT_SENCHA_EXT_VERSION-gpl.zip"
- "ln -sv `pwd`/ext-$DEFT_SENCHA_EXT_VERSION $TRAVIS_BUILD_DIR/../ext"
# Install Sencha Cmd
- "wget http://cdn.sencha.com/cmd/$DEFT_SENCHA_CMD_VERSION/no-jre/SenchaCmd-$DEFT_SENCHA_CMD_VERSION-linux-amd64.sh.zip"
- "unzip -q SenchaCmd-$DEFT_SENCHA_CMD_VERSION-linux-amd64.sh.zip"
- "chmod +x SenchaCmd-$DEFT_SENCHA_CMD_VERSION-linux-amd64.sh"
- "./SenchaCmd-$DEFT_SENCHA_CMD_VERSION-linux-amd64.sh -q"
# 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"