Skip to content

Commit c861aa1

Browse files
committed
Update python command in linux
1 parent 561c3ad commit c861aa1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@ before_script:
4242

4343
before_install:
4444
# Python
45+
- python3 --version
4546
- |
4647
if [ $TRAVIS_OS_NAME = 'linux' ]; then
4748
sudo apt update;
4849
sudo apt install software-properties-common;
4950
sudo add-apt-repository -y ppa:deadsnakes/ppa;
5051
sudo apt-get update;
5152
sudo apt-get install python3.8;
52-
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8;
53-
sudo update-alternatives --config python3;
5453
fi
54+
- python3 --version
5555

5656
# grcov
5757
- curl -L https://github.com/mozilla/grcov/releases/download/v0.4.1/grcov-linux-x86_64.tar.bz2 | tar jxf -

tests/output/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#[cfg(target_os = "linux")]
2-
pub static PYTHON: &str = "python3";
2+
pub static PYTHON: &str = "python3.8";
33
#[cfg(target_os = "macos")]
44
pub static PYTHON: &str = "python3";
55
#[cfg(target_os = "windows")]

0 commit comments

Comments
 (0)