-
Notifications
You must be signed in to change notification settings - Fork 1
/
buildbot.sh
54 lines (34 loc) · 821 Bytes
/
buildbot.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
53
54
#!/bin/bash
set -e
python3.8 -m venv venv-3.8
. venv-3.8/bin/activate
pip3 install -r requirements.txt
./run_tests.sh
./code_style.sh
deactivate
python3.9 -m venv venv-3.9
. venv-3.9/bin/activate
pip3 install -r requirements.txt
./run_tests.sh
./code_style.sh
deactivate
python3.10 -m venv venv-3.10
. venv-3.10/bin/activate
pip3 install -r requirements.txt
./run_tests.sh
./code_style.sh
deactivate
python3.11 -m venv venv-3.11
. venv-3.11/bin/activate
pip3 install -r requirements.txt
./run_tests.sh
./code_style.sh
BRANCH=$(git rev-parse --abbrev-ref HEAD)
echo "Building branch $BRANCH"
if [[ "$BRANCH" == "main" ]]; then
COVERALLS_REPO_TOKEN=$PROM433_COVERALLS_REPO_TOKEN coveralls
semantic-release publish
fi
if [[ ${BRANCH:0:7} == "heads/v" ]]; then
TAG=${BRANCH:7} ./docker_push.sh
fi