-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild_script.sh
34 lines (29 loc) · 872 Bytes
/
build_script.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
#!/usr/bin/env bash
run_tests() {
apt-get update -qy &&
apt-get install -y python3-dev python3-pip &&
pip3 install -r requirements.txt &&
python3.5 -c "if not hasattr(__import__('sys'), 'real_prefix'): print('WARNING: tests running outside virtualenv')" &&
nosetests --with-coverage --cover-package=aschedule --cover-min-percentage=90 --cover-config-file=.coveragerc --processes=50 --process-timeout=600 --cover-inclusive
return $?
}
install() {
apt-get update -qy &&
apt-get install -y python3-dev python3-pip &&
python3.5 setup.py install
return $?
}
build_pages() {
apt-get update -qy &&
apt-get install -y python3-dev python3-pip &&
pip3 install -r requirements.txt &&
make -C docs html &&
mkdir public &&
cp -rv docs/build/html/* public/
return $?
}
date
"$@"
exit_code=$?
date
exit $exit_code