From 9fb49876f4e52524766e8ca0432c0e67524e72a1 Mon Sep 17 00:00:00 2001 From: Christopher Charbonneau Wells Date: Fri, 23 Oct 2020 23:22:25 -0700 Subject: [PATCH] Use correct Python versions in Travis CI (#169) * Set python executable explicitly with pipenv command * Move to travis-ci.com * Remove Pipfile for older Python versions --- .travis.yml | 10 ++++++---- CONTRIBUTING.md | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9a7dcfc1..e6c3af90 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,13 +5,15 @@ jobs: include: - name: "Python 3.6" before_install: - - pyenv global 3.6.10 + - pyenv global `pyenv versions | tr -d "[:blank:]" | grep -Po "3\.6\.[\d]+" | tail -1` + - rm Pipfile.lock - name: "Python 3.7" before_install: - - pyenv global 3.7.6 + - pyenv global `pyenv versions | tr -d "[:blank:]" | grep -Po "3\.7\.[\d]+" | tail -1` + - rm Pipfile.lock - name: "Python 3.8" before_install: - - pyenv global 3.8.1 + - pyenv global `pyenv versions | tr -d "[:blank:]" | grep -Po "3\.8\.[\d]+" | tail -1` cache: directories: - $HOME/.cache/pip @@ -23,7 +25,7 @@ install: - npm install -g gulp-cli - npm install - pip install pipenv - - pipenv install --dev + - pipenv --python `pyenv which python` install --dev before_script: - gulp lint script: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7b4ce496..0e32787a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ # Contributing -[![Build Status](https://travis-ci.org/babybuddy/babybuddy.svg?branch=master)](https://travis-ci.org/babybuddy/babybuddy) +[![Build Status](https://travis-ci.org/babybuddy/babybuddy.svg?branch=master)](https://travis-ci.com/babybuddy/babybuddy) [![Coverage Status](https://coveralls.io/repos/github/babybuddy/babybuddy/badge.svg?branch=master)](https://coveralls.io/github/babybuddy/babybuddy?branch=master) - [Contributions](#contributions)