Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 09075a7

Browse files
committedOct 11, 2021
Reduce job execution time
1 parent 68a864d commit 09075a7

File tree

3 files changed

+27
-16
lines changed

3 files changed

+27
-16
lines changed
 

‎.travis.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
language: python
2+
cache: pip
23
jobs:
34
include:
45
- name: "Python 3.8 on Focal"
@@ -7,24 +8,10 @@ jobs:
78
python: 3.8
89

910
before_install:
10-
- sudo apt-get update
11-
- sudo apt-get install build-essential
12-
- sudo apt-get install python3-dev
13-
- sudo apt-get install python3-setuptools
14-
- sudo apt-get install python3-pip
15-
- sudo apt-get install python3-venv
16-
- sudo apt-get install portaudio19-dev python3-pyaudio python3-pyaudio
17-
- sudo apt-get install libasound2-plugins libsox-fmt-all libsox-dev libxml2-dev libxslt-dev sox ffmpeg
18-
- sudo apt-get install espeak
19-
- sudo apt-get install libcairo2-dev libgirepository1.0-dev gir1.2-gtk-3.0
20-
- sudo apt install mongodb
21-
- sudo apt-get install gnupg
22-
11+
- bin/deploy/install_system_dependencies.sh
2312

2413
install:
25-
- echo "Install"
26-
- pip install -r requirements.txt
27-
- pip install -U scikit-learn
14+
- bin/deploy/install_python_dependencies.sh
2815

2916
script:
3017
- sudo bash run_tests.sh
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
#-----------------------------------
4+
# Install Python dependencies
5+
#-----------------------------------
6+
pip install -r requirements.txt
7+
pip install -U scikit-learn
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
3+
#-----------------------------------
4+
# System dependencies installation
5+
#-----------------------------------
6+
sudo apt-get update && /
7+
sudo apt-get install build-essential && /
8+
sudo apt-get install python3-dev && /
9+
sudo apt-get install python3-setuptools && /
10+
sudo apt-get install python3-pip && /
11+
sudo apt-get install python3-venv && /
12+
sudo apt-get install portaudio19-dev python3-pyaudio python3-pyaudio && /
13+
sudo apt-get install libasound2-plugins libsox-fmt-all libsox-dev libxml2-dev libxslt-dev sox ffmpeg && /
14+
sudo apt-get install espeak && /
15+
sudo apt-get install libcairo2-dev libgirepository1.0-dev gir1.2-gtk-3.0 && /
16+
sudo apt install mongodb && /
17+
sudo apt-get install gnupg

0 commit comments

Comments
 (0)
Please sign in to comment.