Skip to content
Snippets Groups Projects
Select Git revision
  • c67d8a6ddfdb97b3fe462ac7490b07fa25c7734c
  • master default protected
  • hsh_v3.11
  • hsh_v3.10-r6
  • hsh_v3.10-r3
  • v3.9-r9
  • v3.10-r6
  • v3.9-r8
  • v3.10-r5
  • v3.9-r7
  • v3.10-r4
  • v3.9-r6
  • v3.10-r3
  • v3.9-r5
  • v3.10-r2
  • v3.9-r4
  • v3.10-r1
  • v3.9-r3
  • v3.9-r2
  • v3.9-r1
  • v3.8-r5
  • v3.8-r4
  • v3.8-r3
  • v3.8-r2
  • v3.8-r1
25 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