Commit 9025b049 authored by Luca Cristaldi's avatar Luca Cristaldi
Browse files

update CI script to use the internal docker image

parent c0a78ae1
Loading
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ stages:
  - deploy

pep8:
  image: wifasoi/python-pep8:latest
  image: git-registry.mittelab.org/infra/tryton/commodity-docker/python-pep8:latest
  stage: check
  allow_failure: true
  script:
@@ -42,9 +42,8 @@ test_install:
  variables:
    POSTGRES_DB: $DATABASE_NAME
    POSTGRES_USER: tryton
  image: python:3.7.0-slim-stretch
  image: git-registry.mittelab.org/infra/tryton/commodity-docker/trytond-base:latest
  script: 
    - python3 -m pip install lxml psycopg2
    - python3 setup.py install
    - echo -e "[database]\nuri = postgresql://$POSTGRES_USER:@postgres:5432\n[web]\nlisten=[::]:8000" > trytond.conf
    - export TRYTONPASSFILE=phonypass.notpassword
@@ -52,7 +51,7 @@ test_install:
    - trytond-admin -c trytond.conf -d $DATABASE_NAME -v --all --email r@ndom.peni --update-modules-list
    - trytond-admin -c trytond.conf -d $DATABASE_NAME -v -u $MODULE_NAME --activate-dependencies

install_module:
.install_module:
  stage: deploy
  environment: staging
  only: