.gitlab-ci.yml 993 Bytes
Newer Older
Christopher Gervais's avatar
Christopher Gervais committed
1
image: ubuntu:bionic
Dan Friedman's avatar
Dan Friedman committed
2

3 4 5 6 7
stages:
  - test

variables:
  GIT_SUBMODULE_STRATEGY: recursive
Christopher Gervais's avatar
Christopher Gervais committed
8 9 10 11
  # Overcome world-writeable dir complaints. See:
  # https://docs.ansible.com/ansible/devel/reference_appendices/config.html#cfg-in-world-writable-dir
  ANSIBLE_CONFIG: ansible.cfg
  DEBIAN_FRONTEND: noninteractive
12

13
fast-tests: &test-defaults
14 15 16 17
  stage: test
  before_script:
    # Install Git and GNU Make
    - apt-get update -yqq
Christopher Gervais's avatar
Fix CI.  
Christopher Gervais committed
18 19 20
    - apt-get install -yqq git make unzip
    # Install Behat dependencies
    - apt-get install -yqq curl php-cli php-mbstring php-curl
21 22
    # TODO: Figure out a way to intall these system packages as dependecies of
    # the targets that use them.
Christopher Gervais's avatar
Fix CI.  
Christopher Gervais committed
23 24 25
    - apt-get install -yqq python3-minimal python3-pip python3-yaml python3-jinja2
    - update-alternatives --install /usr/bin/python python /usr/bin/python3 1
    - pip3 install jinja2-cli matrix-client
26
  script:
Dan Friedman's avatar
Dan Friedman committed
27 28
    - source d
    - make run-behat-ci
29 30 31

slow-tests:
  <<: *test-defaults
Dan Friedman's avatar
Dan Friedman committed
32 33
  variables:
    BEHAT_CI_TAGS: slow