2021-02-11 10:26:44 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
trusty()
|
|
|
|
{
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
xenial()
|
|
|
|
{
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
bionic()
|
|
|
|
{
|
|
|
|
cd /usr/src/buildbot-scripts/docker/bionic || return
|
2021-02-11 11:39:15 +01:00
|
|
|
cp ../../travis2bash.sh .
|
2021-02-11 10:26:44 +01:00
|
|
|
docker build -t pybm-build-bionic .
|
|
|
|
}
|
|
|
|
|
|
|
|
focal()
|
|
|
|
{
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
cores=$(grep -E '^cpu cores' /proc/cpuinfo |head -1|cut -d: -f2|tr -d '[:space:]')
|
|
|
|
mem=$(sed -E 's/^MemTotal: +([0-9]+) kB/\1/p;d' < /proc/meminfo)
|
|
|
|
mempercore=$(((mem/1024-4096)/cores))
|
|
|
|
|
|
|
|
trusty
|
|
|
|
xenial
|
|
|
|
bionic
|
|
|
|
focal
|