Skip to content

Commit a482f0b

Browse files
committed
chore: ignore some tests from Travis
1 parent 62b9ad4 commit a482f0b

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

.travis.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
language: python
22
python:
33
- "2.7"
4-
node_js: 10
54
before_install:
65
- pip install -U pip
76
install:
8-
- printenv
9-
- sudo apt-get update
10-
- sudo apt-get install tesseract-ocr
11-
- sudo apt-get install libtesseract-dev
127
- python -m pip install --upgrade pip
138
- pip install --upgrade -r requirements.txt
149
script:

core_tests/utils/image_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def test_03_get_main_color(self):
3535
actual_color = ImageUtils.get_main_color(image_path=self.app_image)
3636
assert (actual_color == self.white).all(), 'Main color is wrong. It should be white.'
3737

38+
@unittest.skipIf(os.environ.get('TRAVIS', None) is not None, 'Skip on Travis.')
3839
def test_04_get_text(self):
3940
# OCR on Hello-World app
4041
text = ImageUtils.get_text(self.app_image)

core_tests/utils/run_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def test_20_run_long_living_process(self):
7676
assert 'test' in File.read(result.log_file), 'Log file should contains output of the command.'
7777

7878
@timed(30)
79+
@unittest.skipIf(os.environ.get('TRAVIS', None) is not None, 'Skip on Travis.')
7980
def test_40_run_npm_pack(self):
8081
package = 'tns-core-modules'
8182
version = '5.0.0'

0 commit comments

Comments
 (0)