Skip to content

Commit

Permalink
travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Mar 21, 2015
1 parent 30f36fc commit 0c9596e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 21 deletions.
22 changes: 1 addition & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,7 @@ python:
- 2.7
node_js:
- 0.10
install:
- sudo apt-get install -y python-lxml python-dbus python-lxml
- pip install -r ajenti-core/requirements.txt
- pip install -r plugins/core/requirements.txt
- pip install -r plugins/terminal/requirements.txt
- pip install ajenti-dev-multitool
before_script:
- npm install -g bower
- ajenti-dev-multitool --bower install
- cd tests-karma
- npm install
- cd ..
script:
- echo Running Nose tests
- cd tests-nose
- nosetests base.py
- cd ..
- echo Running Karma tests
- cd tests-karma
- ./node_modules/.bin/karma start karma.conf.coffee --single-run
- cat coverage/coverage.txt
- cd ..
- scripts/ci.sh
notifications:
slack: ajenti:ANVVc21AEbnRLYAWBZlhzAtW
33 changes: 33 additions & 0 deletions scripts/ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash
echo -en 'travis_fold:start:Python modules\r'
sudo apt-get install -y python-lxml python-dbus python-lxml
pip install -r ajenti-core/requirements.txt
pip install -r plugins/core/requirements.txt
pip install -r plugins/services/requirements.txt
pip install -r plugins/terminal/requirements.txt
pip install ajenti-dev-multitool
echo -en 'travis_fold:end:Python modules\r'

echo -en 'travis_fold:start:Node modules\r'
npm install -g bower
cd tests-karma
npm install || exit 1
cd ..
echo -en 'travis_fold:end:Node modules\r'

echo -en 'travis_fold:start:Bower components\r'
ajenti-dev-multitool --bower install || exit 1
echo -en 'travis_fold:end:Bower components\r'

echo -en 'travis_fold:start:Nose unit tests\r'
cd tests-nose
nosetests base.py || exit 1
cd ..
echo -en 'travis_fold:end:Nose unit tests\r'

echo -en 'travis_fold:start:Karma unit tests\r'
cd tests-karma
./node_modules/.bin/karma start karma.conf.coffee --single-run || exit 1
cat coverage/coverage.txt
cd ..
echo -en 'travis_fold:end:Karma unit tests\r'

0 comments on commit 0c9596e

Please sign in to comment.