-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
98 lines (89 loc) · 3.53 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
language: c
env:
global:
- OBSPY_VERSION=1.1.0
- PYTHON_VERSION=3.6
sudo: false
matrix:
include:
- os: linux
env: CONDA_PLATFORM=linux-64 CONDA_PYSUFFIX=py27
- os: linux
env: CONDA_PLATFORM=linux-32 CONDA_PYSUFFIX=py27 ARCHITECTURE_32BIT="True"
- os: osx
env: CONDA_PLATFORM=osx-64 CONDA_PYSUFFIX=py27
- os: linux
env: CONDA_PLATFORM=linux-64 CONDA_PYSUFFIX=py36
- os: linux
env: CONDA_PLATFORM=linux-32 CONDA_PYSUFFIX=py35 ARCHITECTURE_32BIT="True"
- os: osx
env: CONDA_PLATFORM=osx-64 CONDA_PYSUFFIX=py36
# it seems Travis is now ignoring addons/apt/packages when nested into
# matrix/includes, so manually install those packages:
# $ travis lint .travis.yml
# Warnings for .travis.yml:
# [x] in matrix.include section: unexpected key addons, dropping
# See also
# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
before_install:
- |
if [[ "$ARCHITECTURE_32BIT" == "True" ]]; then
sudo apt-get -qq update;
sudo apt-get install -y libstdc++6:i386 gcc-multilib;
fi
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export OS="MacOSX";
else
export OS="Linux";
fi
- |
if [[ "$ARCHITECTURE_32BIT" == "True" ]]; then
export ARCH=""
else
export ARCH="_64"
fi
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-${OS}-x86${ARCH}.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
# Install constructor
- conda install -q --yes 'constructor>=2.0'
# list package versions
- conda list
# try to fix build problems on osx by adding conda-forge channel with top priority
- conda config --add channels conda-forge
- conda config --add channels conda-forge
# build installer
- constructor --verbose --platform=${CONDA_PLATFORM} ${OBSPY_VERSION}_${CONDA_PYSUFFIX}
script:
# We change directories to make sure that python won't find the copy
# of obspy in the source directory, see
# https://github.com/numpy/numpy/blob/master/.travis.yml#L44
- ls -la ObsPy*.sh
- mkdir empty
- cd empty
- bash ../ObsPy*.sh -b -p $HOME/obspy-anaconda
# for now, always let tests pass, there's currently only one fail on linux-64 py35 (one catch output manager test)
- $HOME/obspy-anaconda/bin/python -m obspy.scripts.runtests --no-flake8 -n anaconda-installers -r || echo ""
- cd ..
notifications:
email: false
deploy:
provider: releases
api_key:
secure: r3IIcaiBrVGGGzmn8WpZ5MYehLIKNzwpq8jVwlVrmjVxqbDLbeM2sC1zyGGzmrzcYf7BLQpb1hDZ/E8cod9tDmmuqqjwn5dx9/FtCFF/02aMacD7UmND8J3xEJPChu9gHkmgwSQlih/WELH/qDvKvg8mgWThHtX3Klpre42EJGv2btGFkxTr1zELwBZM9Omn0QNs6eHdnncW12iRYGwpw8jSIZtqZ3X/Mp2EcfspJKqqV0TL322480yU6EGAZq7ZvtZTjj+tor0zx3S2HVLcZlzYmUS9EjJLOMWsGrXYOXxyZxSqYiXye00nNgHeSGxXpejjc3Ipf8rZzw4q5zEooURiIAZ8DPjKLdvnTdRnGi5FVFVUnjYDiO6j6WQliUlGna/9N9C2+UfflAhoOSl96vZDKfcNThJkaa/4gdDB9Z5OGkoGlksaY7tYuyBOs9sZP9B55vgJULEsJRFaa+FtkUfwywtvDWAUzzzJTkh0/uKATXiCJXk6t4GKGuhj5WoV/Vp8bxVQBPofHEEepd4lK3V49XJGInYtJ+2YG5oUvQDGIMxqJQNWcxJaPjWdxCPi9iawOIf7fL6OOgB4uLtSIqPgevXKf5VPDSTMM+DssJa5M0iRlgPUNCBKEJB/+w5eBNCE4x/RZhxBMQb5FznJ3vQfaq3v10qen2jeSY0IUJk=
file_glob: true
file: "ObsPy*.sh"
skip_cleanup: true
on:
tags: true
repo: obspy/anaconda-installers
# try to upload all binaries to one spot..
name: "${TRAVIS_TAG}-unix"
draft: false
prerelease: false