-
Notifications
You must be signed in to change notification settings - Fork 5
/
Jenkinsfile.sh
27 lines (25 loc) · 980 Bytes
/
Jenkinsfile.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
set -e
echo "----------------------------------------------"
echo "$JOB_NAME build $BUILD_NUMBER"
WORKSPACE_ROOT="$WORKSPACE/$BUILD_NUMBER"
echo "Setting up build in $WORKSPACE_ROOT"
TEST_OUTPUT_DIR_REL=testcase_output
TEST_OUTPUT_DIR="$WORKSPACE_ROOT/$TEST_OUTPUT_DIR_REL"
TEST_DATA_DIR="$WORKSPACE/../../../test-data"
PROJECTS_DIR_REL="projects"
PROJECTS_DIR=$WORKSPACE_ROOT/$PROJECTS_DIR_REL
mkdir $TEST_OUTPUT_DIR
echo "----------------------------------------------"
echo "\nEnvironment:"
df -h .
echo "----------------------------------------------"
cat /proc/meminfo
echo "----------------------------------------------"
#build using docker file in directory:
cd $PROJECTS_DIR/meqtrees-pyxis
IMAGENAME="mtpyxispr"
# build and test
BUILDTAG=${IMAGENAME}36:$BUILD_NUMBER
docker build -f .ci/py3.6.ubuntu18.04.docker -t "${BUILDTAG}" --no-cache=true .
#BUILDTAG=${IMAGENAME}38:$BUILD_NUMBER
#docker build -f .ci/py3.8.ubuntu20.04.docker -t "${BUILDTAG}" --no-cache=true .