forked from AnacondaRecipes/python-feedstock
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
89 lines (74 loc) · 3.36 KB
/
.travis.yml
File metadata and controls
89 lines (74 loc) · 3.36 KB
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
# This file was not generated automatically but written by hand
branches:
only:
# Build only Stackless banches
- /.*-slp$/
language: generic
os: osx
osx_image: xcode6.4
env:
matrix:
- CONDA_PY=36
global:
# The BINSTAR_TOKEN secure variable for anaconda/stackless
- secure: "H+zJIY3F897SrKYZBHeusKKTt319z7YIUebYP2KVVlpAt491/4vwYoFvgFyGMMOj5XlQIn0L9cp51ke3dOgYMk/98ZK2O257D4T9rnCXLLDONzdsnJlZ1+wKnz5vfanDMUM58WKKzzMO2LluFfVLdKQXEoLnmKktGoN8/MJRjHYVWH9qepYx/DsC+kvzWtX9+O3rF4PEX6nbpw7IsHfR5LS6iH5GCm9u5zZRwJOx2OEkwq+bQUIPxxCr6f+pBEvITQtTqsrgaUKTMUqqNkKDX8F68oKrfSW5QjpBm6PD93QPezzVb8jYAB4zN1sjbjF+l8FYguvUOzpGpJxThaeyF7wVIygo4Andf1FyHT+pydVsopo2ZqGPdJ84hu7CntppSH7Gy50cu99ozXspC4c2YhyRYwrg5NserAN2Hb8WBk6eTKh2UCINiDsDkCv7jxkBFZXhybBBcnRG3ToUl6AwVK3JFeqdKFQwhCvvj7IA+WgngEJuZ/CNITlEYHwo4vtwTawyCNybj0alDK4dAZuG2psjh8I4PKjAS1PeO0fr7WBHXysHw2dXnz2XsJL1qU73DdtZ6mca1ud5zNEfpTebgGiqnaeWgyHoRqnpFs41UQyPfz+raL+9EeQ8jtXe5zkd/LA2rksLl/v8l9i6f3ID9nXeAZjUvFBN5i5pX361ENg="
before_install:
# Fast finish the PR.
- |
(curl https://raw.githubusercontent.com/conda-forge/conda-forge-build-setup-feedstock/master/recipe/ff_ci_pr_build.py | \
python - -v --ci "travis" "${TRAVIS_REPO_SLUG}" "${TRAVIS_BUILD_NUMBER}" "${TRAVIS_PULL_REQUEST}") || exit 1
# 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
conda config --remove channels local
conda config --set add_pip_as_python_dependency False
conda config --add channels stackless
conda config --set show_channel_urls true
conda config --set anaconda_upload no
conda install --yes --quiet conda-build xz python
conda install -c anaconda anaconda-client
python -m pip install base91
script:
- |
{ ( while sleep 30 ; do ls -l build.log ; done ) < /dev/null 2>/dev/null & } && DOTPRINTER_PID=$! && \
conda build ./recipe --python=${CONDA_PY} > build.log 2>&1 ; EXIT_CODE=$?
kill $DOTPRINTER_PID && wait $DOTPRINTER_PIT
echo "last 200 lines of output:"
tail -n 200 build.log
echo ""
if [ $EXIT_CODE -eq 0 ] ; then
echo "Created artefact:"
conda build --output ./recipe
else
echo "conda build failed with exit code: $EXIT_CODE"
fi
echo ""
echo "xz compressed and base91 encoded output of the build follows:"
xz -z -c -9 -e < build.log | python -c 'import base91,sys;print(base91.encode(getattr(sys.stdin,"buffer",sys.stdin).read()))' | fold
echo ""
test $EXIT_CODE -eq 0
after_success:
- |
ARTEFACT="$(conda build --output ./recipe)"
test -f "$ARTEFACT" && test "x$BINSTAR_TOKEN" != "x" && anaconda --verbose --token "$BINSTAR_TOKEN" upload "$ARTEFACT" --user stackless --label test
deploy:
skip_cleanup: true