Commit a4f07978 authored by Valentin Samir's avatar Valentin Samir
Browse files

Update .travis.yml to use python3 for flake8, check_rst and coverage

parent 127a14ba
Pipeline #2008 failed with stage
in 13 minutes and 40 seconds
language: python
matrix:
include:
- python: "2.7"
- python: "3.7"
env: TOX_ENV=flake8
- python: "2.7"
- python: "3.7"
env: TOX_ENV=check_rst
- python: "2.7"
env: TOX_ENV=py27-django111
......@@ -19,7 +19,7 @@ matrix:
env: TOX_ENV=py35-django21
- python: "3.6"
env: TOX_ENV=py36-django21
- python: "2.7"
- python: "3.7"
env: TOX_ENV=coverage
cache:
directories:
......
#!/bin/bash
BASEDIR="$1"
set -x
set -e
BASEDIR="$(realpath "$1")"
PROJECT_NAME="$2"
TITLE="Coverage report of $PROJECT_NAME"
......@@ -31,7 +33,7 @@ fi
VENV="$(mktemp -d)"
HTMLREPORT="$(mktemp -d)"
virtualenv "$VENV"
virtualenv -p python3 "$VENV"
"$VENV/bin/pip" install coverage
"$VENV/bin/coverage" html --title "$TITLE" --directory "$HTMLREPORT"
rm -rf "$VENV"
......@@ -43,12 +45,14 @@ cd "$BASEDIR"
rm -rf "$HTMLREPORT"
set +x
echo "curl https://badges.genua.fr/coverage/ ..."
curl https://badges.genua.fr/coverage/ \
-F "secret=$COVERAGE_TOKEN" \
-F "tar=@$BASEDIR/coverage.tar.gz" \
-F "project=$PROJECT_NAME" \
-F "branch=$BRANCH"
set -x
rm "$BASEDIR/coverage.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment