Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
django-cas-server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Samir
django-cas-server
Commits
a4f07978
Commit
a4f07978
authored
Jan 01, 2020
by
Valentin Samir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
.travis.yml
.travis.yml
+3
-3
.update_coverage
.update_coverage
+7
-3
No files found.
.travis.yml
View file @
a4f07978
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
:
...
...
.update_coverage
View file @
a4f07978
#!/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"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment