Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
cache:
2
  paths:
3
    - .composer/cache
4
 
5
variables:
6
  CI_BUILD_DIR: "$CI_PROJECT_DIR"
7
  COMPOSER_HOME: "$CI_PROJECT_DIR/.composer/cache"
8
 
9
  POSTGRES_USER: "postgres"
10
  POSTGRES_HOST_AUTH_METHOD: "trust"
11
 
12
  MYSQL_ROOT_HOST: "%"
13
  MYSQL_ALLOW_EMPTY_PASSWORD: "true"
14
  MYSQL_CHARACTER_SET_SERVER: "utf8mb4"
15
  MYSQL_COLLATION_SERVER: "utf8mb4_unicode_ci"
16
 
17
.job_template: &job_configuration
18
  image: quay.io/amc/moodle-plugin-ci:${PHP_VERSION}-node.16
19
  before_script:
20
    - cd ../..
21
    - moodle-db-isready
22
    - moodle-plugin-ci install --moodle="moodle-upstream-core" --db-host=$DB_HOST --db-port=$DB_PORT
23
  script:
24
    - moodle-plugin-ci phplint
25
    - moodle-plugin-ci phpcpd
26
    - moodle-plugin-ci phpmd
27
    - moodle-plugin-ci codechecker
28
    - moodle-plugin-ci validate
29
    - moodle-plugin-ci savepoints
30
    - moodle-plugin-ci mustache
31
    #- moodle-plugin-ci grunt
32
    #- moodle-plugin-ci phpdoc
33
    - moodle-plugin-ci phpunit
34
    #- moodle-plugin-ci behat --profile chrome
35
  parallel:
36
    matrix:
37
      - MOODLE_BRANCH: [ "MOODLE_403_STABLE" ]
38
        PHP_VERSION: [ "8.0", "8.1", "8.2" ]
39
 
40
test:postgres:
41
  <<: *job_configuration
42
  services:
43
    - postgres:14
44
    - docker:dind
45
  variables:
46
    DB: pgsql
47
    DB_HOST: postgres
48
    DB_PORT: 5432
49
 
50
test:mysql:
51
  <<: *job_configuration
52
  services:
53
    - name: mysql:8.0.23
54
      command: ["mysqld", "--port=6033"]
55
    - docker:dind
56
  variables:
57
    DB: mysqli
58
    DB_HOST: mysql
59
    DB_PORT: 6033
60
 
61
test:mariadb:
62
  <<: *job_configuration
63
  services:
64
    - mariadb:10.6
65
    - docker:dind
66
  variables:
67
    DB: "mariadb"
68
    DB_HOST: "mariadb"
69
    DB_PORT: 3306
70