-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
101 lines (85 loc) · 4.13 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
99
100
101
# This file was generated automatically from conda-smithy. To update this configuration,
# update the conda-forge.yml and/or the recipe/meta.yaml.
# -*- mode: yaml -*-
language: generic
os: osx
osx_image: xcode9.4
env:
matrix:
- CONFIG=osx_python2.7
- CONFIG=osx_python3.5
- CONFIG=osx_python3.6
- CONFIG=osx_python3.7
global:
# The BINSTAR_TOKEN secure variable. This is defined canonically in conda-forge.yml.
- secure: "eAuPsDbWgsL6HJKEckl3lSoT4ZGzAC0quUALFcRkAwdYXa1k6DfgLgqy/ygT1XQ1+qLZhJqX9EzLYcWfkOZe5d6+h9WvglKq4ktac9yQ6myvNdEGXwM9Z3qjrqBkCAridXDbIdlkNOq/EB2xgQDguz43LAemfltKJGbGvdcV2H+jMbuQs+zyuKQhk4ccvmPAusGzWHInlXZNm9pV4K78BM+ap8aTKHM856dgH/flGBTje3IWgDg0nJtjt1F8tjJFUEXYy3chQVaVsc8VmnkjTBcfFX9n1noHkpExNsCt+dhbbmaSkX7xpmQZZ6KULbunMhXe4X2GXDoH6+IXACW73gGM9Ym2r5oHXWDLIkhuVZiPugp9uxGikOA4ckr6pKwHFCOWhKwUVzg0/eSm7zTfl4e10jQR8Y+og9c8UyVzMt0KqlzBHMGYbnhdqwNIgz8HU52dtSBCDfFLZgo7wPKS9tMjS9Z164jCrzQk4ykS7XgLftKYbPvMTbQHNyG+miqkhECZhm+CZ6tnL5WhoOMk26s6CGxD5zEqFxoz1zEeyzbeL/C4YNPYIk5wB9rl5o1VEs6zuxUOV1ybf4I+bylVSRwUIl3wjb7PXC6FUy8zXpK66ovUAALqtXdGXrmLc/TI4BvJyD/vo6RPZYwVI9QoQqcxgeNPChoqDAJLMSjHFq0="
before_install:
# Fast finish the PR.
- |
(curl https://raw.githubusercontent.com/conda-forge/conda-forge-ci-setup-feedstock/master/recipe/conda_forge_ci_setup/ff_ci_pr_build.py | \
python - -v --ci "travis" "${TRAVIS_REPO_SLUG}" "${TRAVIS_BUILD_NUMBER}" "${TRAVIS_PULL_REQUEST}") || exit 1
# hack: download legacy OSX 10.9 sdk from github
- |
echo "Installing MacOSX10.9.sdk"
SDK_MD5="de552e9a4ef12999d2e1f25acce51a76"
SDK_SHA256="a7e52651ec33f0fc7fc025734365854f012875748ebe1a5d1cd8555c5a118ebd"
echo "Downloading SDK"
SDK_NAME="MacOSX10.9.sdk"
curl -OfsSL https://gist.github.com/viscid-hub/f108b33bcbe4bf7d1b63cf76de4d435a/raw/MacOSX10.9.sdk.tar.bz2
echo "Decompressing SDK"
bzip2 --decompress --force ${SDK_NAME}.tar.bz2
echo "Verifying SDK"
dl_md5="$(openssl dgst -md5 ${SDK_NAME}.tar | awk '{print tolower($NF)}')"
dl_sha256="$(openssl dgst -sha256 ${SDK_NAME}.tar | awk '{print tolower($NF)}')"
if [ "${SDK_MD5}" != "${dl_md5}" ]; then
echo "!!!! MacOSX10.9.sdk md5 hash mismatch !!!!"
echo "expected hash : ${SDK_MD5}"
echo "hash of download : ${dl_md5}"
exit 1
fi
if [ "${SDK_SHA256}" != "${dl_sha256}" ]; then
echo "!!!! MacOSX10.9.sdk sha256 hash mismatch !!!!"
echo "expected hash : ${SDK_SHA256}"
echo "hash of download : ${dl_sha256}"
exit 1
fi
echo "Extracting SDK"
tar -xf MacOSX10.9.sdk.tar
echo "Moving SDK"
sdk_dest="$(xcode-select -p)/Platforms/MacOSX.platform/Developer/SDKs"
sudo mkdir -p ${sdk_dest}
sudo mv MacOSX10.9.sdk ${sdk_dest}/
export CONDA_BUILD_SYSROOT="${sdk_dest}/MacOSX10.9.sdk"
# Remove homebrew.
- |
echo ""
echo "Removing homebrew from Travis CI to avoid conflicts."
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall > ~/uninstall_homebrew
chmod +x ~/uninstall_homebrew
~/uninstall_homebrew -fq
rm ~/uninstall_homebrew
install:
# Install Miniconda.
- |
echo ""
echo "Installing a fresh version of Miniconda."
MINICONDA_URL="https://repo.continuum.io/miniconda"
MINICONDA_FILE="Miniconda3-latest-MacOSX-x86_64.sh"
curl -L -O "${MINICONDA_URL}/${MINICONDA_FILE}"
bash $MINICONDA_FILE -b
# Configure conda.
- |
echo ""
echo "Configuring conda."
source /Users/travis/miniconda3/bin/activate root
conda install -n root -c conda-forge --quiet --yes conda-forge-ci-setup=2 conda-build
setup_conda_rc ./ ./recipe ./.ci_support/${CONFIG}.yaml
source run_conda_forge_build_setup
# compiler cleanup
- |
mangle_compiler ./ ./recipe ./.ci_support/${CONFIG}.yaml
script:
# generate the build number clobber
- make_build_number ./ ./recipe ./.ci_support/${CONFIG}.yaml
- conda build ./recipe -m ./.ci_support/${CONFIG}.yaml --clobber-file ./.ci_support/clobber_${CONFIG}.yaml
- upload_package ./ ./recipe ./.ci_support/${CONFIG}.yaml