From c7a3cb9a09676d1d290a845c2d2077b99639e70e Mon Sep 17 00:00:00 2001 From: Zakaria ElQotbi Date: Sun, 12 May 2019 20:24:46 +0200 Subject: [PATCH] gitlab-ci: install required debian env and required python libs to pass CI builds --- .gitlab-ci.yml | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e922818..9356cb1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,23 +4,20 @@ stages: job_build: before_script: - - deb http://cdn-fastly.deb.debian.org/debian/ jessie main - - deb-src http://cdn-fastly.deb.debian.org/debian/ jessie main - - deb http://security.debian.org/ jessie/updates main - - deb-src http://security.debian.org/ jessie/updates main - - deb http://archive.debian.org/debian jessie-backports main - - deb-src http://archive.debian.org/debian jessie-backports main - - - apt-get -qq update && apt-get -qq install -y python3 + - echo "deb http://ftp.debian.org/debian jessie main" > /etc/apt/sources.list + - echo "deb http://ftp.debian.org/debian testing main" >> /etc/apt/sources.list + - echo 'APT::Default-Release "jessie";' >> /etc/apt/apt.conf.d/00local - apt-get -qq update - - apt-get -qq install -y python3 python3-virtualenv python3-pip - - apt-get -qq install python3-tk - - virtualenv -p python3 venv - - . venv/bin/activate + - apt-cache policy python3 + - apt-get remove -y binutils + - apt-get -t testing install -y python3 + - apt-get -qq -t testing install -y python3-venv python3-pip python3-tk - python3 -V - - pip install numpy + - python3 -m venv venv + - . venv/bin/activate + - pip3 install -r requirements.txt stage: build script: - echo "build" - - python etagement.py + - ./etagement.py -- GitLab