Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
1c0eb8bb
Unverified
Commit
1c0eb8bb
authored
6 years ago
by
Richard van der Hoff
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #4676 from matrix-org/rav/pg95
Test against Postgres 9.5 as well as 9.4
parents
a288bdf0
0869f01e
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.travis.yml
+32
-14
32 additions, 14 deletions
.travis.yml
changelog.d/4676.misc
+1
-0
1 addition, 0 deletions
changelog.d/4676.misc
with
33 additions
and
14 deletions
.travis.yml
+
32
−
14
View file @
1c0eb8bb
...
@@ -12,9 +12,6 @@ cache:
...
@@ -12,9 +12,6 @@ cache:
#
#
-
$HOME/.cache/pip/wheels
-
$HOME/.cache/pip/wheels
addons
:
postgresql
:
"
9.4"
# don't clone the whole repo history, one commit will do
# don't clone the whole repo history, one commit will do
git
:
git
:
depth
:
1
depth
:
1
...
@@ -25,6 +22,7 @@ branches:
...
@@ -25,6 +22,7 @@ branches:
-
master
-
master
-
develop
-
develop
-
/^release-v/
-
/^release-v/
-
rav/pg95
# When running the tox environments that call Twisted Trial, we can pass the -j
# When running the tox environments that call Twisted Trial, we can pass the -j
# flag to run the tests concurrently. We set this to 2 for CPU bound tests
# flag to run the tests concurrently. We set this to 2 for CPU bound tests
...
@@ -32,36 +30,53 @@ branches:
...
@@ -32,36 +30,53 @@ branches:
matrix
:
matrix
:
fast_finish
:
true
fast_finish
:
true
include
:
include
:
-
python
:
2.7
-
name
:
"
pep8"
env
:
TOX_ENV=packaging
python
:
3.6
env
:
TOX_ENV="pep8,check_isort,packaging"
-
python
:
3.6
env
:
TOX_ENV="pep8,check_isort"
-
python
:
2.7
-
name
:
"
py2.7
/
sqlite"
python
:
2.7
env
:
TOX_ENV=py27,codecov TRIAL_FLAGS="-j 2"
env
:
TOX_ENV=py27,codecov TRIAL_FLAGS="-j 2"
-
python
:
2.7
-
name
:
"
py2.7
/
sqlite
/
olddeps"
python
:
2.7
env
:
TOX_ENV=py27-old TRIAL_FLAGS="-j 2"
env
:
TOX_ENV=py27-old TRIAL_FLAGS="-j 2"
-
python
:
2.7
-
name
:
"
py2.7
/
postgres9.5"
python
:
2.7
addons
:
postgresql
:
"
9.5"
env
:
TOX_ENV=py27-postgres,codecov TRIAL_FLAGS="-j 4"
env
:
TOX_ENV=py27-postgres,codecov TRIAL_FLAGS="-j 4"
services
:
services
:
-
postgresql
-
postgresql
-
python
:
3.5
-
name
:
"
py3.5
/
sqlite"
python
:
3.5
env
:
TOX_ENV=py35,codecov TRIAL_FLAGS="-j 2"
env
:
TOX_ENV=py35,codecov TRIAL_FLAGS="-j 2"
-
python
:
3.6
-
name
:
"
py3.6
/
sqlite"
python
:
3.6
env
:
TOX_ENV=py36,codecov TRIAL_FLAGS="-j 2"
env
:
TOX_ENV=py36,codecov TRIAL_FLAGS="-j 2"
-
python
:
3.6
-
name
:
"
py3.6
/
postgres9.4"
python
:
3.6
addons
:
postgresql
:
"
9.4"
env
:
TOX_ENV=py36-postgres TRIAL_FLAGS="-j 4"
services
:
-
postgresql
-
name
:
"
py3.6
/
postgres9.5"
python
:
3.6
addons
:
postgresql
:
"
9.5"
env
:
TOX_ENV=py36-postgres,codecov TRIAL_FLAGS="-j 4"
env
:
TOX_ENV=py36-postgres,codecov TRIAL_FLAGS="-j 4"
services
:
services
:
-
postgresql
-
postgresql
-
# we only need to check for the newsfragment if it's a PR build
-
# we only need to check for the newsfragment if it's a PR build
if
:
type = pull_request
if
:
type = pull_request
name
:
"
check-newsfragment"
python
:
3.6
python
:
3.6
env
:
TOX_ENV=check-newsfragment
env
:
TOX_ENV=check-newsfragment
script
:
script
:
...
@@ -70,6 +85,9 @@ matrix:
...
@@ -70,6 +85,9 @@ matrix:
-
tox -e $TOX_ENV
-
tox -e $TOX_ENV
install
:
install
:
# this just logs the postgres version we will be testing against (if any)
-
psql -At -U postgres -c 'select version();'
-
pip install tox
-
pip install tox
# if we don't have python3.6 in this environment, travis unhelpfully gives us
# if we don't have python3.6 in this environment, travis unhelpfully gives us
...
...
This diff is collapsed.
Click to expand it.
changelog.d/4676.misc
0 → 100644
+
1
−
0
View file @
1c0eb8bb
Test against Postgres 9.5 as well as 9.4
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment