Skip to content
Snippets Groups Projects
Select Git revision
  • 993329a875f217a43aff144c33dd03a1750bbce2
  • master default protected
  • hsh_v4.5
  • hsh_v4-4
  • hsh_v4.4
  • hsh_v4.3
  • hsh_v4.1.x
  • hsh_v4.2
  • hsh_v4.1
  • hsh_v3.11
  • hsh_3.10
  • v3.11-r2-hsh
  • v3.11-r2
  • v3.11-r1
  • v3.10-r1
  • v3.9-r1
  • v3.8-r2
  • v3.8-r1
  • v3.7-r1
19 results

.travis.yml

Blame
  • .travis.yml 2.37 KiB
    language: php
    
    sudo: true
    
    addons:
      firefox: "47.0.1"
      postgresql: "9.4"
      apt:
        packages:
          - openjdk-8-jre-headless
    
    cache:
      directories:
        - $HOME/.composer/cache
        - $HOME/.npm
    
    services:
      - mysql
    
    php:
      - 7.0
      - 7.1
      - 7.3
    
    env:
      matrix:
       - DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE
       - DB=pgsql MOODLE_BRANCH=MOODLE_36_STABLE
       - DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE
       - DB=pgsql MOODLE_BRANCH=master
       - DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE
       - DB=mysqli MOODLE_BRANCH=MOODLE_36_STABLE
       - DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
       - DB=mysqli MOODLE_BRANCH=master
    
    matrix:
     exclude:
      - php: 7.0
        env: DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE
      - php: 7.0
        env: DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
      - php: 7.0
        env: DB=pgsql MOODLE_BRANCH=master
      - php: 7.0
        env: DB=mysqli MOODLE_BRANCH=master
     fast_finish: true
    
    before_install:
      - phpenv config-rm xdebug.ini
      - nvm install 8.9
      - nvm use 8.9
      - cd ../..
      - composer create-project -n --no-dev --prefer-dist blackboard-open-source/moodle-plugin-ci ci ^2
      - export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
    
    jobs:
      include:
        # Prechecks against latest Moodle stable only.
        - stage: static
          php: 7.3
          env: DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
          install:
          - moodle-plugin-ci install --no-init
          script:
          - moodle-plugin-ci phpdoc
          - moodle-plugin-ci phplint
          - moodle-plugin-ci phpcpd
          - moodle-plugin-ci phpmd
          - moodle-plugin-ci codechecker
          - moodle-plugin-ci validate