File tree Expand file tree Collapse file tree 4 files changed +19
-7
lines changed Expand file tree Collapse file tree 4 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /bin/sh
22
3- curl http://tarantool.org/dist/public.key | sudo apt-key add -
4- echo " deb http://tarantool.org/dist/master/ubuntu/ ` lsb_release -c -s` main" | sudo tee -a /etc/apt/sources.list.d/tarantool.list
3+ set -exu # Strict shell (w/o -o pipefail)
4+
5+ # Install tarantool.
6+ curl http://download.tarantool.org/tarantool/2x/gpgkey | sudo apt-key add -
7+ release=` lsb_release -c -s`
8+ echo " deb http://download.tarantool.org/tarantool/2x/ubuntu/ ${release} main" | sudo tee /etc/apt/sources.list.d/tarantool_2x.list
59sudo apt-get update > /dev/null
610sudo apt-get -q -y install tarantool
11+
12+ # Install testing dependencies.
713pip install -r requirements.txt
14+ pip install pyyaml
15+
16+ # Run tests.
817python setup.py test
Original file line number Diff line number Diff line change 44import sys
55import unittest
66import setuptools
7+ from distutils .errors import DistutilsError
78
89from glob import glob
910
@@ -23,5 +24,7 @@ def run(self):
2324 '''
2425
2526 tests = unittest .defaultTestLoader .discover ('unit' )
26- test_runner = unittest .TextTestRunner (verbosity = 2 )
27- test_runner .run (tests )
27+ test_runner = unittest .TextTestRunner (verbosity = 2 )
28+ result = test_runner .run (tests )
29+ if not result .wasSuccessful ():
30+ raise DistutilsError ('There are failed tests' )
Original file line number Diff line number Diff line change 1- #!/usr/bin/env ipython
1+ # -*- coding: utf-8 -*-
22
33from __future__ import print_function
44
Original file line number Diff line number Diff line change 1- #!/usr/bin/env ipython
1+ # -*- coding: utf-8 -*-
22
33from __future__ import print_function
44
You can’t perform that action at this time.
0 commit comments