summaryrefslogtreecommitdiff
path: root/.travis/run.sh
blob: 25cbf7de6bcd6732a3b10ad2b55d9dc6982eb1f9 (plain)
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
#!/bin/bash

set -e
set -x

if [[ -n "$PYENV_VERSION" ]]; then
    eval "$(pyenv init -)"
fi

if [[ -n "$PYPY_URL" ]]; then
    cmd=./pypy
else
    cmd=python
fi

"$cmd" setup.py build_ext -i
"$cmd" -m compileall -f .
"$cmd" setup.py test

if [[ -n "$PYENV_VERSION" && $TRAVIS_OS_NAME == 'osx' ]]; then
    python setup.py bdist_wheel
fi
if [[ $BUILD_SDIST == 'true' ]]; then
    python setup.py sdist
fi