-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy path.travis_install.sh
executable file
·60 lines (53 loc) · 1.25 KB
/
.travis_install.sh
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
#!/bin/bash
# try and make wheels
if [ $DOCKER_IMAGE ]; then
docker run --rm -v `pwd`:/io $DOCKER_IMAGE /io/buildwheels.sh
if [ $? != 0 ]; then
exit 1
fi
ls wheelhouse/
if [ $? != 0 ]; then
exit 1
fi
# compile normally
else
if [ $TRAVIS_OS_NAME == 'osx' ]; then
export PATH="$HOME/miniconda/bin:$PATH"
source $HOME/miniconda/bin/activate
conda activate travis
# Somehow we need this to execute the setup.py at all...
pip install numpy
pip install $PYSAM_VERSION
fi
# setuptools < 18.0 has issues with Cython as a dependency
pip install Cython
if [ $? != 0 ]; then
exit 1
fi
if [ $TRAVIS_OS_NAME == 'linux' ]; then
sed -i "s|pysam>=0.9.0|$PYSAM_VERSION|" setup.py
elif [ $TRAVIS_OS_NAME == 'osx' ]; then
sed -i "" "s|pysam>=0.9.0|$PYSAM_VERSION|" setup.py
else
echo "OS not recognized: $TRAVIS_OS_NAME"
exit 1
fi
if [ $? != 0 ]; then
exit 1
fi
# old setuptools also has a bug for extras, but it still compiles
pip install -v '.[htseq-qa]'
if [ $? != 0 ]; then
exit 1
fi
fi
# OSX makes wheels as well
if [ $TRAVIS_OS_NAME == 'osx' ]; then
mkdir wheelhouse
pip wheel . -w wheelhouse/
if [ $? != 0 ]; then
exit 1
fi
#FIXME
ls wheelhouse
fi