forked from UFSC/moodle-local-relationship
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
51 lines (46 loc) · 1.63 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
image: robertosilvino/moodle-php:5.6.02
services:
- mysql:5.6
cache:
paths:
- $HOME/.composer/cache
variables:
MOODLE_BRANCH: "MOODLE_30_STABLE"
DB: "mysqli"
MYSQL_ROOT_PASSWORD: "superrootpass"
TRAVIS_BUILD_DIR: "$CI_PROJECT_DIR"
before_script:
# Several tools complain about xdebug slowdown.
#- phpenv config-rm xdebug.ini
# Install php-gd
- apt-get update
- apt-get install -y git libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev libpng12-dev libicu-dev g++ mysql-client php5-mysql npm
- docker-php-ext-install -j$(nproc) iconv mcrypt intl zip mysqli
- docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
- docker-php-ext-install -j$(nproc) gd
#- locale-gen en_AU.UTF-8
# Install phpunit.
- curl -o /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
- chmod +x /usr/local/bin/phpunit
- cd ../..
# Install composer.
- curl -sS https://getcomposer.org/installer | php
- mv composer.phar /usr/local/bin/composer
- composer create-project -n --no-dev moodlerooms/moodle-plugin-ci ci ^1
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
- chmod u+x /builds/ci/bin/moodle-plugin-ci
- chmod u+x /builds/ci/bin/*
- umask u+x
- moodle-plugin-ci install --db-user=root --db-pass=superrootpass --db-host=mysql -vvv
job1:
script:
#- moodle-plugin-ci phplint || true
#- moodle-plugin-ci phpcpd || true
#- moodle-plugin-ci phpmd || true
#- moodle-plugin-ci codechecker || true
#- moodle-plugin-ci csslint || true
#- moodle-plugin-ci shifter || true
#- moodle-plugin-ci jshint || true
#- moodle-plugin-ci validate || true
- moodle-plugin-ci phpunit
- moodle-plugin-ci behat