Skip to content

Commit fae147c

Browse files
committed
try to get working conda installations in CI for obspy 1.1.0
1 parent 84b06e4 commit fae147c

File tree

2 files changed

+21
-18
lines changed

2 files changed

+21
-18
lines changed

.travis.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ language: c
22

33
env:
44
global:
5-
- OBSPY_VERSION=1.0.3
5+
- OBSPY_VERSION=1.1.0
66

77
sudo: false
88

@@ -22,7 +22,7 @@ matrix:
2222
env: PYTHON_VERSION=2.7 CONDA_PLATFORM=osx-64 CONDA_PYSUFFIX=py27
2323

2424
- os: linux
25-
env: PYTHON_VERSION=3.5 CONDA_PLATFORM=linux-64 CONDA_PYSUFFIX=py35
25+
env: PYTHON_VERSION=3.6 CONDA_PLATFORM=linux-64 CONDA_PYSUFFIX=py36
2626
- os: linux
2727
env: PYTHON_VERSION=3.5 CONDA_PLATFORM=linux-32 CONDA_PYSUFFIX=py35 ARCHITECTURE_32BIT="True"
2828
addons:
@@ -32,7 +32,7 @@ matrix:
3232
- libstdc++6:i386
3333
- gcc-multilib
3434
- os: osx
35-
env: PYTHON_VERSION=3.5 CONDA_PLATFORM=osx-64 CONDA_PYSUFFIX=py35
35+
env: PYTHON_VERSION=3.6 CONDA_PLATFORM=osx-64 CONDA_PYSUFFIX=py36
3636

3737
install:
3838
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
@@ -48,10 +48,9 @@ install:
4848
fi
4949
- if [[ "$PYTHON_VERSION" == "2.7" ]]; then
5050
export MINICONDA="Miniconda2-latest";
51-
elif [[ "$PYTHON_VERSION" == "3.5" ]]; then
52-
export MINICONDA="Miniconda3-3.5.5";
51+
# elif [[ "$PYTHON_VERSION" == "3.5" ]]; then
5352
else
54-
export MINICONDA="";
53+
export MINICONDA="Miniconda3-3.5.5";
5554
fi
5655
- wget https://repo.continuum.io/miniconda/${MINICONDA}-${OS}-x86${ARCH}.sh -O miniconda.sh;
5756
- bash miniconda.sh -b -p $HOME/miniconda
@@ -69,15 +68,15 @@ install:
6968
- source activate test
7069
# Useful for debugging any issues with conda
7170
- conda info -a
71+
- if [[ "$PYTHON_VERSION" == "2.7" ]]; then
72+
conda install mock;
73+
fi
7274
- |
7375
if [[ "$ARCHITECTURE_32BIT" == "True" ]]; then
74-
# linux32 doesnt have basemap-data-hires
75-
conda install obspy==${OBSPY_VERSION} ipython jupyter basemap nomkl sqlalchemy gdal
76-
elif [[ "$OS" == "Linux" ]]; then
77-
# only linux64 has geographiclib
78-
conda install obspy==${OBSPY_VERSION} ipython jupyter basemap nomkl sqlalchemy gdal basemap-data-hires geographiclib
76+
# linux32 doesnt have basemap-data-hires and also no geographiclib
77+
conda install obspy==${OBSPY_VERSION} ipython jupyter basemap nomkl sqlalchemy pyshp cryptography
7978
else
80-
conda install obspy==${OBSPY_VERSION} ipython jupyter basemap nomkl sqlalchemy gdal basemap-data-hires
79+
conda install obspy==${OBSPY_VERSION} ipython jupyter basemap nomkl sqlalchemy pyshp cryptography basemap-data-hires geographiclib
8180
fi
8281
# list package versions
8382
- conda env export

appveyor.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
# /E:ON and /V:ON options are not enabled in the batch script intepreter
1010
# See: http://stackoverflow.com/a/13751649/163740
1111
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\misc\\appveyor\\run_with_env.cmd"
12-
OBSPY_VERSION: "1.0.3"
12+
OBSPY_VERSION: "1.1.0"
1313

1414
matrix:
1515
# Pre-installed Python versions, which Appveyor may upgrade to
@@ -29,16 +29,16 @@ environment:
2929
CONDA_PYSUFFIX: "py27"
3030

3131
- PYTHON: "C:\\Miniconda35-x64"
32-
PYTHON_VERSION: "3.5"
32+
PYTHON_VERSION: "3.6"
3333
PYTHON_ARCH: "64"
3434
CONDA_PLATFORM: "win-64"
35-
CONDA_PYSUFFIX: "py35"
35+
CONDA_PYSUFFIX: "py36"
3636

3737
- PYTHON: "C:\\Miniconda35"
38-
PYTHON_VERSION: "3.5"
38+
PYTHON_VERSION: "3.6"
3939
PYTHON_ARCH: "32"
4040
CONDA_PLATFORM: "win-32"
41-
CONDA_PYSUFFIX: "py35"
41+
CONDA_PYSUFFIX: "py36"
4242

4343
platform:
4444
- x64
@@ -67,7 +67,11 @@ install:
6767
- "conda info -a"
6868
- "conda create -q --yes -n test python=%PYTHON_VERSION%"
6969
- "activate test"
70-
- "conda install --yes obspy==%OBSPY_VERSION% ipython jupyter basemap basemap-data-hires sqlalchemy gdal mkl"
70+
- ps: |
71+
If ($env:PYTHON_VERSION -eq "2.7") {
72+
conda install mock
73+
}
74+
- "conda install --yes obspy==%OBSPY_VERSION% ipython jupyter basemap basemap-data-hires sqlalchemy pyshp mkl geographiclib cryptography"
7175
# list package versions
7276
- "conda env export"
7377
- "conda list --explicit"

0 commit comments

Comments
 (0)