Commit 97528fd1 authored by Vivien Kraus's avatar Vivien Kraus
Browse files

Use Gitlab CI caches

parent d527076e
Pipeline #231667 passed with stages
in 44 minutes and 15 seconds
......@@ -13,6 +13,15 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
variables:
APT_CACHE: "$CI_PROJECT_DIR/cache/apt"
DNF_CACHE: "$CI_PROJECT_DIR/cache/dnf"
cache:
key: tarot
paths:
- cache
image: debian
stages:
......@@ -21,7 +30,6 @@ stages:
- manual
dist:
image: tarotbis/dist
stage: dist
script: "./ci/dist.sh"
artifacts:
......@@ -30,12 +38,11 @@ dist:
expire_in: 1 week
check:
image: tarotbis/check
stage: check
script: "./ci/check.sh"
mingw:
image: tarotbis/mingw
image: fedora
stage: check
script: "./ci/mingw.sh"
artifacts:
......@@ -44,7 +51,6 @@ mingw:
expire_in: 1 week
deb:
image: tarotbis/deb
stage: check
script: "./ci/deb.sh"
artifacts:
......
......@@ -14,13 +14,16 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
echo "Dir::Cache::Archives $APT_CACHE;" > /etc/apt/apt.conf.d/75gitlabcicache.conf
mkdir -p $APT_CACHE || exit 1
apt-get update
apt-get upgrade -y
apt-get install -y \
build-essential \
guile-2.2-dev \
frama-c \
frama-c-base \
libglib2.0-dev \
make \
nettle-dev \
pkg-config \
valgrind
......
......@@ -14,7 +14,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
echo "Dir::Cache::Archives $APT_CACHE;" > /etc/apt/apt.conf.d/75gitlabcicache.conf
mkdir -p $APT_CACHE || exit 1
apt-get update || exit 1
apt-get upgrade -y || exit 1
apt-get install -y \
build-essential \
......
......@@ -18,6 +18,8 @@
#
# Remove VALAFLAGS="--target-glib=2.50"
echo "Dir::Cache::Archives $APT_CACHE;" > /etc/apt/apt.conf.d/75gitlabcicache.conf
mkdir -p $APT_CACHE || exit 1
apt-get update
apt-get upgrade -y
apt-get install -y \
......
......@@ -14,6 +14,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
(echo "keepcache=True" ; echo "cachedir=$DNF_CACHE") >> /etc/dnf/dnf.conf || exit 1
mkdir -p $DNF_CACHE || exit 1
dnf update -y || exit 1
cat > /etc/rpm/macros.image-language-conf <<EOF
......
......@@ -14,6 +14,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
echo "Dir::Cache::Archives $APT_CACHE;" > /etc/apt/apt.conf.d/75gitlabcicache.conf
mkdir -p $APT_CACHE || exit 1
apt-get update
apt-get upgrade -y
apt-get install -y \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment