forked from PacificBiosciences/FALCON
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbamboo_build.sh
executable file
·43 lines (35 loc) · 1.02 KB
/
bamboo_build.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
#!/bin/bash
type module >& /dev/null || . /mnt/software/Modules/current/init/bash
module purge
module load git
module load gcc
module load ccache
module load python/2
#module load make
set -vex
git --version
which gcc
which g++
gcc --version
which python
rm -rf LOCAL
mkdir -p LOCAL
export PYTHONUSERBASE=$(pwd)/LOCAL
export PATH=${PYTHONUSERBASE}/bin:${PATH}
# We need latest local pypeFLOW, not from PyPI.
pushd ../pypeFLOW
pip install --user --edit .
popd
# Back to FALCON.
# Unfortunately, we need pypeflow for pylint.
python -c 'import pypeflow as p; print p'
python -c 'import pypeflow.sample_tasks as p; print p'
make install-edit
# Note: no --edit because we might be building artifacts.
# ... Scratch that. We have trouble getting coverage for
# source=falcon_kit
# but maybe it will work with a --edit install.
export MY_TEST_FLAGS="-v -s --durations=0 --cov=falcon_kit --cov-report=term-missing --cov-report=xml:coverage.xml --cov-branch"
make test
sed -i -e 's@filename="@filename="./falcon_kit/@g' coverage.xml
make pylint