-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (48 loc) · 1.63 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
---
language: generic
matrix:
include:
- os: linux
- os: osx
env:
global:
- PACKAGE_NAME=zeroc-ice36
- ANACONDA_USER="${TRAVIS_REPO_SLUG%/*}"
- PATH="$HOME/miniconda/bin:$PATH"
install:
# xcode image is missing headers
# https://github.com/travis-ci/travis-ci/issues/9640
# https://docs.conda.io/projects/conda-build/en/latest/resources/compiler-tools.html#macos-sdk
# Anaconda uses 1.9 but Ice 3.6.5 includes TLS 1.3 support which requires a more recent SecureTransport
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
pushd /opt;
curl -L https://github.com/phracker/MacOSX-SDKs/releases/download/10.13/MacOSX10.13.sdk.tar.xz | sudo tar xf -;
popd;
fi
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
wget -q https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
else
wget -q https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda && rm miniconda.sh
- conda install -y conda-build anaconda-client
- conda info -a
script:
# Override the version string for dev builds
- if [ -z "${TRAVIS_TAG}" ]; then
export VERSION_SUFFIX=".${TRAVIS_BRANCH}";
else
export VERSION_SUFFIX="";
fi
- conda build -c ${ANACONDA_USER} .
deploy:
- provider: script
skip_cleanup: true
script: sh deploy.sh $HOME/miniconda/conda-bld/$TRAVIS_OS_NAME-64/$PACKAGE_NAME-*.tar.bz2
on:
branch: master
- provider: script
skip_cleanup: true
script: sh deploy.sh $HOME/miniconda/conda-bld/$TRAVIS_OS_NAME-64/$PACKAGE_NAME-*.tar.bz2
on:
tags: true