Skip to content

Commit f88073b

Browse files
Merge pull request #43 from geodynamics/baagaard/update-travisci-py27
Update Travis CI settings to use Python 2.7 compatible pythia and nemesis
2 parents 2ecd6f1 + f228bc1 commit f88073b

File tree

4 files changed

+16
-34
lines changed

4 files changed

+16
-34
lines changed

.travis.yml

Lines changed: 11 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Travis-CI configuration
22

3+
dist: bionic
4+
35
services:
46
- docker
57

@@ -10,48 +12,28 @@ jobs:
1012
include:
1113
- name: debian-stable-gcc8
1214
os: linux
13-
env: BASE_IMAGE=geodynamics/pylith-testenv-debian-stable-gcc8 TEST_COVERAGE=yes PYTHON_COVERAGE=python2-coverage
15+
env: BASE_IMAGE=geodynamics/pylith-testenv-debian-stable-gcc8:py2 TEST_COVERAGE=yes PYTHON_COVERAGE=python2-coverage
1416
- name: debian-testing-gcc9
1517
os: linux
16-
env: BASE_IMAGE=geodynamics/pylith-testenv-debian-testing-gcc9 TEST_COVERAGE=yes PYTHON_COVERAGE=python2-coverage
18+
env: BASE_IMAGE=geodynamics/pylith-testenv-debian-testing-gcc9:py2 TEST_COVERAGE=yes PYTHON_COVERAGE=python2-coverage
1719
- name: ubuntu-18.04
1820
os: linux
19-
env: BASE_IMAGE=geodynamics/pylith-testenv-ubuntu-18.04 TEST_COVERAGE=yes PYTHON_COVERAGE=python2-coverage
20-
- name: ubuntu-19.10
21-
os: linux
22-
env: BASE_IMAGE=geodynamics/pylith-testenv-ubuntu-19.10 TEST_COVERAGE=yes PYTHON_COVERAGE=python2-coverage
21+
env: BASE_IMAGE=geodynamics/pylith-testenv-ubuntu-18.04:py2 TEST_COVERAGE=yes PYTHON_COVERAGE=python2-coverage
2322
- name: ubuntu-20.04
2423
os: linux
25-
env: BASE_IMAGE=geodynamics/pylith-testenv-ubuntu-20.04 TEST_COVERAGE=yes PYTHON_COVERAGE=python2-coverage
26-
- name: fedora-30
27-
os: linux
28-
env: BASE_IMAGE=geodynamics/pylith-testenv-fedora-30 TEST_COVERAGE=yes PYTHON_COVERAGE=coverage2
29-
- name: fedora-31
30-
os: linux
31-
env: BASE_IMAGE=geodynamics/pylith-testenv-fedora-31 TEST_COVERAGE=yes PYTHON_COVERAGE=coverage2
24+
env: BASE_IMAGE=geodynamics/pylith-testenv-ubuntu-20.04:py2 TEST_COVERAGE=yes PYTHON_COVERAGE=python2-coverage
3225
- name: fedora-32
3326
os: linux
34-
env: BASE_IMAGE=geodynamics/pylith-testenv-fedora-32
35-
- name: centos-6
27+
env: BASE_IMAGE=geodynamics/pylith-testenv-fedora-32:py2
28+
- name: fedora-33
3629
os: linux
37-
env: BASE_IMAGE=geodynamics/pylith-testenv-centos-6
30+
env: BASE_IMAGE=geodynamics/pylith-testenv-fedora-33:py2
3831
- name: centos-7
3932
os: linux
40-
env: BASE_IMAGE=geodynamics/pylith-testenv-centos-7
33+
env: BASE_IMAGE=geodynamics/pylith-testenv-centos-7:py2
4134
- name: centos-8
4235
os: linux
43-
env: BASE_IMAGE=geodynamics/pylith-testenv-centos-8
44-
45-
# Permissions problem with BUILD_DIR for nemesis.
46-
# - name: fedora-33
47-
# os: linux
48-
# env: BASE_IMAGE=geodynamics/pylith-testenv-fedora-33
49-
50-
# - os: linux
51-
# env: BASE_IMAGE=geodynamics/pylith-testenv-debian-testing-clang8
52-
# - os: linux
53-
# env: BASE_IMAGE=geodynamics/pylith-testenv-debian-testing-clang9
54-
36+
env: BASE_IMAGE=geodynamics/pylith-testenv-centos-8:py2
5537

5638
addons:
5739
apt:

docker/spatialdata-testenv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ENV PYTHONPATH ${PYTHONPATH}:${PREFIX_DIR}/lib/python${PYTHON_VERSION}/site-pack
2323
ENV SRC_DIR ${TOP_DIR}/src/pythia
2424
RUN mkdir -p ${PREFIX_DIR}/lib/python${PYTHON_VERSION}/site-packages
2525

26-
RUN git clone --depth 1 --recursive https://github.com/geodynamics/pythia.git ${SRC_DIR}
26+
RUN git clone --branch v0.8.1.20 --depth 1 --recursive https://github.com/geodynamics/pythia.git ${SRC_DIR}
2727
WORKDIR ${SRC_DIR}
2828
RUN python2 setup.py install --prefix=${PREFIX_DIR}
2929

@@ -32,7 +32,7 @@ ENV SRC_DIR $TOP_DIR/src/nemesis
3232
ENV BUILD_DIR $TOP_DIR/build/nemesis
3333
RUN mkdir -p ${BUILD_DIR}
3434

35-
RUN git clone --depth 1 --recursive https://github.com/geodynamics/nemesis.git ${SRC_DIR}
35+
RUN git clone --branch v1.1.1 --depth 1 --recursive https://github.com/geodynamics/nemesis.git ${SRC_DIR}
3636
WORKDIR ${SRC_DIR}
3737
RUN autoreconf --install --verbose
3838
WORKDIR ${BUILD_DIR}

m4

Submodule m4 updated 1 file

spatialdata/spatialdb/TimeHistory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ def validateFilename(value):
2727
Validate filename.
2828
"""
2929
if 0 == len(value):
30-
raise ValueError("Name of SimpleGridDB file must be specified.")
30+
raise ValueError("Name of TimeHistoryDB file must be specified.")
3131
try:
3232
fin = open(value, "r")
3333
except IOError:
34-
raise IOError("Spatial database file '{}' not found.".format(value))
34+
raise IOError("Temporal database file '{}' not found.".format(value))
3535
return value
3636

3737

0 commit comments

Comments
 (0)