Skip to content
Snippets Groups Projects
.travis.yml 890 B
Newer Older
  • Learn to ignore specific revisions
  • Kathrin Osswald's avatar
    Kathrin Osswald committed
    language: php
    
    
    addons:
    
    Alexander Bias's avatar
    Alexander Bias committed
    
    services:
      - mysql
      - postgresql
    
    Kathrin Osswald's avatar
    Kathrin Osswald committed
    cache:
      directories:
        - $HOME/.composer/cache
    
        - $HOME/.npm
    
     global:
      - MOODLE_BRANCH=MOODLE_39_STABLE
     matrix:
      - DB=pgsql
      - DB=mysqli
    
    Kathrin Osswald's avatar
    Kathrin Osswald committed
    
    before_install:
      - phpenv config-rm xdebug.ini
      - cd ../..
    
      - composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3
    
    Kathrin Osswald's avatar
    Kathrin Osswald committed
      - export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
    
    install:
      - moodle-plugin-ci install
    
    script:
      - moodle-plugin-ci phplint
      - moodle-plugin-ci phpcpd
      - moodle-plugin-ci phpmd
      - moodle-plugin-ci codechecker
      - moodle-plugin-ci validate
    
      - moodle-plugin-ci savepoints
    
    Kathrin Osswald's avatar
    Kathrin Osswald committed
      - moodle-plugin-ci mustache || true
    
      - moodle-plugin-ci grunt
    
    Kathrin Osswald's avatar
    Kathrin Osswald committed
      - moodle-plugin-ci phpunit
    
      - moodle-plugin-ci behat --dump --suite=boost_campus