This repository was archived by the owner on Apr 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Adding automated CI checks to project. #54
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
af9207c
Adding automated CI checks to project.
ee0c5f0
Adding automated CI checks to project.
5ca9ff4
Fix some small typos
f4b095e
Add flag to composer require os2forms/os2forms_forloeb
0e84beb
Update phpdotenv version to 4.0
e71da46
Updating deprecated drupal_set_message() call
3a72a9b
Fix all comments and indentation per Drupal standards and Codesniffer
e3a08de
Remove -w flag from composer update command
af874c1
Merge pull request #55 from OS2Forms/fix_comments_plus_indentation
madsnorgaard c6f2471
Refactor and improvement to Travis CI
ac0b61c
Rolling back to working travis configuration. We can improve further on.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| language: php | ||
|
|
||
| sudo: false | ||
|
|
||
| php: | ||
| - 7.4 | ||
|
|
||
| before_install: | ||
| - echo "memory_limit=2G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini | ||
|
|
||
| install: | ||
| - composer global require drush/drush:8.x-dev drupal/coder mglaman/drupal-check friendsoftwig/twigcs | ||
| - export PATH="$HOME/.config/composer/vendor/bin:$PATH" | ||
| - phpcs --config-set installed_paths ../../drupal/coder/coder_sniffer | ||
| - phpenv rehash | ||
| - nvm install 12.13.0 | ||
| - nvm use 12 | ||
| - npm install --global yarn | ||
| - cd ../ && composer create-project drupal-composer/drupal-project:8.x-dev drupal --no-interaction | ||
| - cd drupal | ||
| - DRUPAL_ROOT=$(pwd)/web | ||
| - export REPOSITORIES='"repositories":\ \[' | ||
| - export REPOSITORIES_REPLACE='"repositories":\[\{"type":"path","url":"..\/os2forms_forloeb","options":\{"symlink":false\}\},' | ||
| - export REQUIRE='"require":\ {' | ||
| - export REQUIRE_REPLACE='"require":{"os2forms\/os2forms_forloeb":"\*",' | ||
| - sed -i "s/$REPOSITORIES/$REPOSITORIES_REPLACE/g" composer.json | ||
| - sed -i "s/$REQUIRE/$REQUIRE_REPLACE/g" composer.json | ||
| - composer update os2forms/os2forms_forloeb | ||
| - PROJECT_PATH=$DRUPAL_ROOT/modules/contrib/os2forms_forloeb | ||
| - cd $DRUPAL_ROOT/core | ||
| - yarn install | ||
| - npm install --global eslint-config-drupal-bundle stylelint | ||
|
|
||
| script: | ||
| - phpcs --standard=Drupal --ignore=*.md $PROJECT_PATH | ||
| - twigcs $PROJECT_PATH | ||
| - cd $DRUPAL_ROOT/core | ||
| - eslint $DRUPAL_ROOT/modules/contrib/os2forms_forloeb | ||
| - stylelint --aei $DRUPAL_ROOT/modules/contrib/os2forms_forloeb/**/*.css | ||
| - drupal-check $DRUPAL_ROOT/modules/contrib/os2forms_forloeb | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.