Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scheduler-3080979
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
scheduler-3080979
Commits
384950d9
Commit
384950d9
authored
4 years ago
by
Jonathan Smith
Committed by
Jonathan Smith
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3143802
by jonathan1055: Remove Travis testing at 8.7, remove PHP5.6, use Devel 4.x
parent
4829acf4
No related branches found
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.travis.yml
+8
-25
8 additions, 25 deletions
.travis.yml
with
8 additions
and
25 deletions
.travis.yml
+
8
−
25
View file @
384950d9
...
...
@@ -5,7 +5,6 @@ language: php
sudo
:
true
php
:
-
5.6
-
7.1
-
7.3
...
...
@@ -15,21 +14,16 @@ services:
env
:
global
:
-
MODULE=scheduler
# Allow this many deprecation warnings before failing the build.
-
SYMFONY_DEPRECATIONS_HELPER=4
matrix
:
-
DRUPAL_CORE=8.7.x
-
DRUPAL_CORE=8.8.x
-
DRUPAL_CORE=8.9.x
matrix
:
fast_finish
:
true
# PHP7.3 is not supported on Core 8.7 and earlier.
# PHP5 is not supported on Core 8.8 and later.
exclude
:
-
php
:
7.3
env
:
DRUPAL_CORE=8.7.x
-
php
:
5.6
env
:
DRUPAL_CORE=8.8.x
-
php
:
5.6
-
php
:
7.1
env
:
DRUPAL_CORE=8.9.x
# Be sure to cache composer downloads.
...
...
@@ -54,7 +48,7 @@ before_script:
# Export database variable for kernel tests.
-
export SIMPLETEST_DB=mysql://root:@127.0.0.1/$MODULE
# Download Drupal
8
core from the Github mirror because it is faster.
# Download Drupal core from the Github mirror because it is faster.
-
travis_retry git clone --branch $DRUPAL_CORE --depth 1 https://github.com/drupal/drupal.git
-
cd drupal
# Store the path to Drupal root.
...
...
@@ -65,21 +59,16 @@ before_script:
-
mkdir $DRUPAL_ROOT/modules/$MODULE
-
cp -R $TRAVIS_BUILD_DIR/* $DRUPAL_ROOT/modules/$MODULE/
#
Install
dependenc
i
es.
#
Get the latest dev versions of the test
dependenc
y modul
es.
-
travis_retry git clone --branch 8.x-3.x --depth 1 https://git.drupalcode.org/project/rules.git modules/rules
-
travis_retry git clone --branch
8
.x
-2.1
--depth 1 https://git.drupalcode.org/project/devel.git modules/devel
-
travis_retry git clone --branch
4
.x
--depth 1 https://git.drupalcode.org/project/devel.git modules/devel
-
travis_retry git clone --branch 8.x-1.x --depth 1 https://git.drupalcode.org/project/typed_data.git modules/typed_data
# Run composer self-update and install.
-
travis_retry composer self-update && travis_retry composer install
# If running Core 8.6 or 8.7 the following script will upgrade to phpunit 6
# which is required in PHP7. The script has now been deleted from Core 8.8.
-
if [[ $DRUPAL_CORE == "8.6.x" || $DRUPAL_CORE == "8.7.x" ]]; then
travis_retry composer run-script drupal-phpunit-upgrade;
fi
# Install drush
-
travis_retry composer require drush/drush:^9.0
-
travis_retry composer require drush/drush:
"
^9.0
|| ^10.0"
# Coder is already installed as part of composer install. We just need to set
# the installed_paths to pick up the Drupal standards.
...
...
@@ -99,13 +88,7 @@ before_script:
script
:
# Run the PHPUnit tests.
-
cd $DRUPAL_ROOT
# Do not run the Javascript tests on PHP5.6
# See https://www.drupal.org/project/scheduler/issues/3133151
-
if [ $TRAVIS_PHP_VERSION == "5.6" ]; then
./vendor/bin/phpunit -c ./core/phpunit.xml.dist ./modules/$MODULE/tests/ --filter='/(?!.*Javascript)^.*$/';
else
./vendor/bin/phpunit -c ./core/phpunit.xml.dist ./modules/$MODULE/tests/;
fi
-
./vendor/bin/phpunit -c ./core/phpunit.xml.dist ./modules/$MODULE/tests/;
# Check for coding standards. First change directory to our module.
-
cd $DRUPAL_ROOT/modules/$MODULE
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment