forked from PacificBiosciences/pbcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bamboo_wheel.sh
executable file
·52 lines (40 loc) · 1.11 KB
/
bamboo_wheel.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
#!/bin/bash
type module >& /dev/null || . /mnt/software/Modules/current/init/bash
module purge
module load gcc
module load ccache
set -vex
ls -larth ..
ls -larth
pwd
case "${bamboo_planRepository_branchName}" in
develop|master)
echo "Building wheels ..."
;;
*)
echo "Not building wheels."
exit
;;
esac
export WHEELHOUSE=./wheelhouse
# Give everybody read/write access.
umask 0000
module load python/2-UCS2
make wheel
# For now, we have only "any" wheels, so we do not need to build again.
module unload python
module load python/2-UCS4
make wheel
# http://bamboo.pacificbiosciences.com:8085/build/admin/edit/defaultBuildArtifact.action?buildKey=SAT-TAGDEPS-JOB1
# For old artifact config:
#mkdir -p ./artifacts/gcc-6.4.0/wheelhouse
#rsync -av ${WHEELHOUSE}/falcon*.whl artifacts/gcc-6.4.0/wheelhouse/
# Select export dir based on Bamboo branch, but only for develop and master.
case "${bamboo_planRepository_branchName}" in
develop|master)
WHEELHOUSE="/mnt/software/p/python/wheelhouse/${bamboo_planRepository_branchName}/"
rsync -av ./wheelhouse/ ${WHEELHOUSE}
;;
*)
;;
esac