Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
M
moodle-block_featuredcourses
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Daniel Neis Araujo
moodle-block_featuredcourses
Commits
5ece773d
Commit
5ece773d
authored
Dec 20, 2017
by
Daniel Neis Araujo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add continuous integration with gitlab
parent
7ce3aeb7
Pipeline
#15335287
passed with stage
in 2 minutes and 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
.gitlab-ci.yml
.gitlab-ci.yml
+30
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
5ece773d
image
:
moodlehq/moodle-php-apache:7.0
services
:
-
mysql:latest
cache
:
paths
:
-
$HOME/.composer/cache
variables
:
MOODLE_BRANCH
:
"
MOODLE_34_STABLE"
DB
:
"
mysqli"
MYSQL_ROOT_PASSWORD
:
"
superrootpass"
TRAVIS_BUILD_DIR
:
"
$CI_PROJECT_DIR"
before_script
:
-
apt update && apt install git-core mysql-client npm -y
-
cd $CI_PROJECT_DIR/..
-
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 ci/bin/moodle-plugin-ci
-
chmod u+x 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 ; moodle-plugin-ci phpcpd ; moodle-plugin-ci phpmd ; moodle-plugin-ci codechecker ; moodle-plugin-ci csslint ; moodle-plugin-ci shifter ; moodle-plugin-ci jshint ; moodle-plugin-ci validate ; moodle-plugin-ci phpunit ; moodle-plugin-ci behat
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment