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

export ARCH=$1
export DISTRO=$2

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

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

cd
cd $CI_PROJECT_DIR

16
# Update the __pkginfo__ file with the current commit 
17
COMMIT_ID=$(git rev-parse HEAD)
18
19
20
sed -i "s/.*__commit__.*/__commit__ = \"${COMMIT_ID}\"/" MDANSE/__pkginfo__.py

# Get revision number from git (without trailing newline)
21
echo -e "$BLEU""Commit id = ${COMMIT_ID}<--" "$NORMAL"
22
23
24
25
26

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