run_build.sh 426 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

export ARCH=$1
export DISTRO=$2

#############################
# CONFIGURATION
#############################

## Add some colors
BLEU="\\033[1;34m"

cd
cd $CI_PROJECT_DIR

# Get revision number from git (without trailing newline)
17
18
COMMIT_ID=$(git rev-parse --long HEAD)
echo -e "$BLEU""Commit id = ${COMMIT_ID}<--" "$NORMAL"
19
20
21
22
23

# Now build last version
echo "$BLEU""Building MDANSE" "$NORMAL"
python setup.py build