Fakultas Ilmu Komputer UI

.gitlab-ci.yml 645 Bytes
Newer Older
1
2
3
4
5
6
7
stages:
  - test

Test:
  image: python:3.7
  stage: test
  before_script:
8
9
10
11
12
13
14
     - apt-get update -qq && apt-get install -y -qq unzip
     - apt-get install -qy --fix-missing --no-install-recommends xvfb firefox-esr
     - apt-get install -y xvfb
     - wget https://github.com/mozilla/geckodriver/releases/download/v0.19.0/geckodriver-v0.19.0-linux64.tar.gz; mkdir geckodriver; tar -xzf geckodriver-v0.19.0-linux64.tar.gz -C geckodriver; export PATH=$PATH:$PWD/geckodriver;
     - pip install -r requirements.txt
     - pip3 install --upgrade pip
     - pip3 install -r requirements.txt
15
16
17
18
  script:
    - python3 manage.py test
  tags:
    - test