-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
48 lines (40 loc) · 1.36 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
language: python
python:
- "2.7"
# - "3.3"
env:
- SUBLIME_TEXT_VERSION="2"
- SUBLIME_TEXT_VERSION="3"
# command to install dependencies
before_install:
# Install Railo
- wget http://cfml-ci.s3.amazonaws.com/railo-express-4.2.1.000-nojre.tar.gz
- tar -xvf railo-express-4.2.1.000-nojre.tar.gz
- sudo ./railo-express-4.2.1.000-nojre/start &
# Install hacked MXUnit
- wget https://github.com/marcins/mxunit/archive/v2.1.3.tar.gz
- tar -xvf v2.1.3.tar.gz
- mv mxunit-2.1.3 railo-express-4.2.1.000-nojre/webapps/ROOT/mxunit
install:
# Install Sublime Text and output version
- curl https://raw.githubusercontent.com/twolfson/sublime-installer/0.1.3/install.sh | sh -s $SUBLIME_TEXT_VERSION
- subl --version
# Install dev dependencies
- pip install sublime-plugin-tests
- pip install flake8
- pip install pep257
# Install our plugin
- mkdir -p '~/.config/sublime-text-'$SUBLIME_TEXT_VERSION'/Packages/'
- ln -s $PWD '~/.config/sublime-text-'$SUBLIME_TEXT_VERSION'/Packages/MXUnit'
before_script:
# Generate a screen buffer to collect Sublime Text window
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# Ensure the scripts self-terminate
- export SUBLIME_AUTO_KILL=TRUE
# command to run tests
script:
- flake8 *.py --max-line-length=120 --ignore="W191"
- pep257 *.py
# Run our tests
- nosetests --nocapture --verbose --stop