Skip to content
Snippets Groups Projects
Select Git revision
  • c093f63d092c8494c24e588556e9ece4e4f0ff9f
  • 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.55 KiB
    language: php
    os: linux
    dist: xenial
    
    addons:
      postgresql: "9.6"
    
    cache:
      directories:
        - $HOME/.composer/cache
        - $HOME/.npm
    
    services:
      - mysql
      - docker
    
    php:
      - 7.2
      - 7.3
      - 7.4
    
    env:
      jobs:
        - DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE
        - DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE
        - DB=pgsql MOODLE_BRANCH=MOODLE_38_STABLE
        - DB=pgsql MOODLE_BRANCH=MOODLE_39_STABLE
        - DB=pgsql MOODLE_BRANCH=master
        - DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE
        - DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
        - DB=mysqli MOODLE_BRANCH=MOODLE_38_STABLE
        - DB=mysqli MOODLE_BRANCH=MOODLE_39_STABLE
        - DB=mysqli MOODLE_BRANCH=master
    
    before_install:
      - phpenv config-rm xdebug.ini
      - nvm install 14
      - cd ../..
      - composer create-project -n --no-dev --prefer-dist blackboard-open-source/moodle-plugin-ci ci dev-master
      - export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
    
    jobs:
      fast_finish: true
      include:
        # Prechecks against latest Moodle stable only.
        - stage: static
          php: 7.4
          env: DB=mysqli MOODLE_BRANCH=MOODLE_39_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
            - moodle-plugin-ci savepoints
            - moodle-plugin-ci mustache
            - moodle-plugin-ci grunt
        # Smaller build matrix for development builds
        - stage: develop
          php: 7.4
          env: DB=mysqli MOODLE_BRANCH=MOODLE_39_STABLE
      exclude:
        - php: 7.3
          env: DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE
        - php: 7.3
          env: DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE
        - php: 7.4