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
2
2
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
5
9
sudo apt-get update > /dev/null
6
10
sudo apt-get -q -y install tarantool
11
+
12
+ # Install testing dependencies.
7
13
pip install -r requirements.txt
14
+ pip install pyyaml
15
+
16
+ # Run tests.
8
17
python setup.py test
Original file line number Diff line number Diff line change 4
4
import sys
5
5
import unittest
6
6
import setuptools
7
+ from distutils .errors import DistutilsError
7
8
8
9
from glob import glob
9
10
@@ -23,5 +24,7 @@ def run(self):
23
24
'''
24
25
25
26
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 -*-
2
2
3
3
from __future__ import print_function
4
4
Original file line number Diff line number Diff line change 1
- #!/usr/bin/env ipython
1
+ # -*- coding: utf-8 -*-
2
2
3
3
from __future__ import print_function
4
4
You can’t perform that action at this time.
0 commit comments