Skip to content

Commit

Permalink
Merge pull request #152 from seboettg/feature/151-styles-locales-via-…
Browse files Browse the repository at this point in the history
…composer

#151 use composer to fetch csl locales and styles
  • Loading branch information
seboettg authored Mar 24, 2023
2 parents bd92689 + e59c7d7 commit 116b470
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 70 deletions.
46 changes: 46 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# PHP CircleCI 2.0 configuration file
# See: https://circleci.com/docs/2.0/language-php/
version: 2

# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
jobs:
build:
# Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
# See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor
docker:
# Specify the version you desire here
- image: cimg/php:8.0.28

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# Using the RAM variation mitigates I/O contention
# for database intensive operations.
# - image: circleci/mysql:5.7-ram
#
# - image: redis:2.8.19

# Add steps to the job
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
steps:
- checkout

- run: sudo apt update # PHP CircleCI 2.0 Configuration File# PHP CircleCI 2.0 Configuration File sudo apt install zlib1g-dev libsqlite3-dev
- run: sudo docker-php-ext-install zip
- run: sudo docker-php-ext-install intl
# Download and cache dependencies
- restore_cache:
keys:
# "composer.lock" can be used if it is committed to the repo
- v1-dependencies-{{ checksum "composer.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: composer install -n --prefer-dist

- save_cache:
key: v1-dependencies-{{ checksum "composer.json" }}
paths:
- ./vendor
- run: composer test
20 changes: 0 additions & 20 deletions .github/workflows/php.yml.template

This file was deleted.

22 changes: 0 additions & 22 deletions .scrutinizer.yml

This file was deleted.

6 changes: 2 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
}
},
"require": {
"citation-style-language/styles": "v0.0.*",
"citation-style-language/locales": "v0.0.*",
"seboettg/collection": ">=v3.1.0",
"myclabs/php-enum": "^1.8",
"ext-simplexml": "*",
Expand All @@ -46,14 +48,10 @@
},
"scripts": {
"post-install-cmd": [
"./install.sh styles",
"./install.sh locales",
"@compile-test-cases",
"chmod +x vendor/bin/phpunit"
],
"post-update-cmd": [
"./install.sh styles",
"./install.sh locales",
"@compile-test-cases",
"chmod +x vendor/bin/phpunit"
],
Expand Down
9 changes: 0 additions & 9 deletions install.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -1249,8 +1249,8 @@ bibliography
"given": "John"
}
],
"title": "こんにちは世界",
"id": "ITEM-2",
"title": "こんにちは世界",
"type": "book"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1246,56 +1246,56 @@ bibliography
"author": [
{
"family": "First",
"given": "James"
"given": "James"
},
{
"family": "Second",
"given": "Jay"
"given": "Jay"
},
{
"family": "Third",
"given": "John"
"given": "John"
},
{
"family": "Fourth",
"given": "Jack"
"given": "Jack"
},
{
"family": "Fifth",
"given": "Jacob"
"given": "Jacob"
},
{
"family": "Sixth",
"given": "Joseph"
"given": "Joseph"
},
{
"family": "Seventh",
"given": "Julian"
"given": "Julian"
},
{
"family": "Eighth",
"given": "Jayden"
"given": "Jayden"
},
{
"family": "Ninth",
"given": "Jackson"
"given": "Jackson"
},
{
"family": "Tenth",
"given": "Jasper"
"given": "Jasper"
},
{
"family": "Eleventh",
"given": "Jonathan"
"given": "Jonathan"
},
{
"family": "Twelfth",
"given": "Jeremiah"
"given": "Jeremiah"
}
],
"id": "ITEM-1",
"type": "book",
"title": "Test"
"title": "Test",
"type": "book"
}
]
<<===== INPUT =====<<

0 comments on commit 116b470

Please sign in to comment.