Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis cleanup, versions bump and repo name changes #4

Merged
merged 7 commits into from
Jul 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .travis.dist.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: php

addons:
postgresql: "9.4"
postgresql: "9.5"

services:
- mysql
Expand All @@ -14,23 +14,22 @@ cache:
- $HOME/.npm

php:
- 7.1
- 7.2
- 7.3

env:
global:
- MOODLE_BRANCH=MOODLE_38_STABLE
- MOODLE_BRANCH=MOODLE_39_STABLE
matrix:
- DB=pgsql
- DB=mysqli

before_install:
- phpenv config-rm xdebug.ini
- nvm install 8.9
- nvm use 8.9
- nvm install 14.0.0
- nvm use 14.0.0
- cd ../..
- composer create-project -n --no-dev --prefer-dist blackboard-open-source/moodle-plugin-ci ci ^2
- composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^2
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
- docker run -d -p 127.0.0.1:4444:4444 --net=host --shm-size=2g -v $HOME/build/moodle:$HOME/build/moodle selenium/standalone-firefox:2.53.1

Expand Down
22 changes: 11 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ env:

before_install:
- phpenv config-rm xdebug.ini
- nvm install 8.9
- nvm use 8.9
- nvm install 14.0.0
stronk7 marked this conversation as resolved.
Show resolved Hide resolved
- nvm use 14.0.0
- make init
# Mimic how a Moodle plugin would be run.
- cp -R tests/Fixture/moodle-local_travis ../moodle-local_travis
Expand All @@ -50,41 +50,41 @@ script:
- moodle-plugin-ci validate
- moodle-plugin-ci savepoints
- moodle-plugin-ci mustache
- moodle-plugin-ci grunt || [ "$MOODLE_BRANCH" != 'master' -a "$MOODLE_BRANCH" != 'MOODLE_38_STABLE' ]
- moodle-plugin-ci grunt || [ "$MOODLE_BRANCH" != 'master' -a "$MOODLE_BRANCH" != 'MOODLE_39_STABLE' ]
stronk7 marked this conversation as resolved.
Show resolved Hide resolved
- moodle-plugin-ci phpdoc
- moodle-plugin-ci phpunit --coverage-text
- moodle-plugin-ci behat --profile chrome

jobs:
include:
- stage: Tests
addons: skip
php: 7.3
before_install: skip
install:
- make init
script:
- make validate
- stage: Integration tests
- php: 7.3
env: MOODLE_BRANCH=MOODLE_39_STABLE
- php: 7.3
env: MOODLE_BRANCH=MOODLE_38_STABLE
- php: 7.3
env: MOODLE_BRANCH=MOODLE_37_STABLE
- php: 7.2
env: MOODLE_BRANCH=MOODLE_36_STABLE
- php: 7.2
env: MOODLE_BRANCH=MOODLE_35_STABLE
- stage: Deploy
stronk7 marked this conversation as resolved.
Show resolved Hide resolved
addons: skip
before_install: skip
install: skip
script: skip
before_deploy:
- make build/moodle-plugin-ci.phar
- php build/moodle-plugin-ci.phar list
deploy:
provider: releases
api_key:
secure: 1A6XanGYBX2fjDfQF96LK8otHz9Sh9g29eq7O+4ntAFyN5hYTVxJBdtp6LFkoeEHeQJtHpl/vmw+htavL5UXcYHqLsX+suXH8JML0Bg5sTA/HIhksetl226PtbdJabD/5AerLzqf+PiHGagzBBqscUqkVl7DdHEVkC/OQCDNcB5onFNqSRlCP50WFyXHBr4TccrUuvHK+jKcG4AFMLU7f2Bo2j5NBQW+ucY/RdNczXrRo4et9JHZJRocPFxQMpOnV7fTrQaHlt+HQe5FikNM28Vh44uVj7ZGYLWZNmtQb9K3Fq9t+atObMcYjsjBbnqypzm8BUNDx2YfsZvcpNOEtksYx6rE58EXQgJCBod7azjt4ulIrKPNOK64A9s6SX/ZQ68VEGYCYlC412kWC6SwPp77iDRLv4Z0MpmvtZfJ1LbkvMx22SRJGBSD24INvLxh4XnfUN0qQ021HUNIbTQ8cBuTGzMWf7W2nYjEGbTVV1fTMcFFy8IXOhnodM1s5kbMDRjASxkNpMBbbhfh4b3WnBhoi+Ecqjq4DFhU7YLHdjLF1pkuRHoBn1I7vNbO+JaEMtTQHokDxBGe4hIehkGxs04Q//2tI7DsWyVLhCTStoC9OqQMTZmAJCUUVV/L9HV7HS6ZqgkBlPBvpld3g8cMqRVN19p4B09WyMQcK8usJEw=
token: $GITHUB_OAUTH_ENCRYPTED_TOKEN
file: build/moodle-plugin-ci.phar
skip_cleanup: true
cleanup: false
on:
repo: blackboard-open-source/moodle-plugin-ci
repo: moodlehq/moodle-plugin-ci
tags: true
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "blackboard-open-source/moodle-plugin-ci",
"name": "moodlehq/moodle-plugin-ci",
"description": "Assists with running Moodle plugins in Travis CI",
"keywords": ["moodle", "travis", "ci", "testing"],
"type": "project",
Expand Down Expand Up @@ -75,8 +75,8 @@
"symfony/console": "^3.3",
"symfony/yaml": "^3.3",
"symfony/process": "^3.3",
"jakub-onderka/php-parallel-lint": "^0.9",
"jakub-onderka/php-console-highlighter": "^0.3",
"php-parallel-lint/php-parallel-lint": "^0.9",
"php-parallel-lint/php-console-highlighter": "^0.3",
"psr/log": "^1.0",
"nikic/php-parser": "^3.0",
"stecman/symfony-console-completion": "^0.7.0",
Expand Down
Loading