From d275b9e428d1e23e3add4ee2727328dd5cd55436 Mon Sep 17 00:00:00 2001 From: landrok Date: Wed, 3 Apr 2024 09:16:26 +0200 Subject: [PATCH] [Fix] Remove Travis badges and config file --- .travis.yml | 31 ------------------- README.md | 2 +- docs/index.md | 2 +- ...ertube-outbox-activities-using-dialects.md | 29 +++++++++-------- 4 files changed, 16 insertions(+), 48 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3ed877f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,31 +0,0 @@ -language: php - -cache: - directories: - - $HOME/.composer/cache - -php: - - 7.2 - - 7.3 - - 7.4 - - 8.0 - - nightly - -matrix: - allow_failures: - - php: nightly - -install: - - composer install - -before_script: - ## Install Code climate reporter - - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - - chmod +x ./cc-test-reporter - - ./cc-test-reporter before-build - -script: ./vendor/bin/phpunit -c phpunit.xml.dist - -after_script: - ## Code climate - - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT diff --git a/README.md b/README.md index 2da43fe..a9c588f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ActivityPhp =========== -[![Build Status](https://travis-ci.com/landrok/activitypub.svg?branch=master)](https://travis-ci.com/landrok/activitypub) +[![Build Status](https://github.com/landrok/activitypub/workflows/tests/badge.svg)](https://github.com/landrok/activitypub/actions) [![Maintainability](https://api.codeclimate.com/v1/badges/410c804f4cd03cc39b60/maintainability)](https://codeclimate.com/github/landrok/activitypub/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/410c804f4cd03cc39b60/test_coverage)](https://codeclimate.com/github/landrok/activitypub/test_coverage) diff --git a/docs/index.md b/docs/index.md index 4006536..fcae263 100644 --- a/docs/index.md +++ b/docs/index.md @@ -2,7 +2,7 @@ layout: default --- -[![Build Status](https://travis-ci.com/landrok/activitypub.svg?branch=master)](https://travis-ci.com/landrok/activitypub) +[![Build Status](https://github.com/landrok/activitypub/workflows/tests/badge.svg)](https://github.com/landrok/activitypub/actions) [![Test Coverage](https://api.codeclimate.com/v1/badges/410c804f4cd03cc39b60/test_coverage)](https://codeclimate.com/github/landrok/activitypub/test_coverage) **ActivityPhp** is an implementation of ActivityPub layers in PHP. diff --git a/docs/server/example-fetch-peertube-outbox-activities-using-dialects.md b/docs/server/example-fetch-peertube-outbox-activities-using-dialects.md index b588580..a6356c2 100644 --- a/docs/server/example-fetch-peertube-outbox-activities-using-dialects.md +++ b/docs/server/example-fetch-peertube-outbox-activities-using-dialects.md @@ -8,10 +8,10 @@ excerpt: How to fetch Peertube Outbox activities using ActivityPhp's dialects in Using dialects to fetch Peertube Outbox activities ================================================== -For some usages, you may use an instance without having to configure +For some usages, you may use an instance without having to configure many items. -For instance, if you want to fetch some public activities, you don't +For instance, if you want to fetch some public activities, you don't need to have a fully-configured server instance. Indeed, you don't need any configuration at all. @@ -47,18 +47,18 @@ while ($page->next !== null) { And that's it, you have an array containing all pages. -Therefore, if you test this implementation on a real world -ActivityPub-powered application like Peertube, you would have something +Therefore, if you test this implementation on a real world +ActivityPub-powered application like Peertube, you would have something like: ```sh Exception: Property "uuid" is not defined. Type="Video", Class="\ActivityPhp\Type\Extended\Object\Video" ``` -Indeed, Peertube (and others like Mastodon) extends the ActivityPub +Indeed, Peertube (and others like Mastodon) extends the ActivityPub object model to fit their needs. -So, in order to fetch Peertube's activities, we need to extend our base +So, in order to fetch Peertube's activities, we need to extend our base models with Peertube dialect. ________________________________________________________________________ @@ -77,14 +77,14 @@ that are specific. use ActivityPhp\Server; /* ------------------------------------------------------------------ - | We'll use the following definitions to fit PeerTube's dialect + | We'll use the following definitions to fit PeerTube's dialect ------------------------------------------------------------------ */ - + $peertube = [ 'Group' => ['support'], 'Video' => [ - 'uuid', 'category', 'language', 'views', 'sensitive', 'waitTranscoding', - 'state', 'commentsEnabled', 'support', 'subtitleLanguage', 'likes', + 'uuid', 'category', 'language', 'views', 'sensitive', 'waitTranscoding', + 'state', 'commentsEnabled', 'support', 'subtitleLanguage', 'likes', 'dislikes', 'shares', 'comments', 'licence' ], 'Image' => ['width', 'height'], @@ -122,13 +122,13 @@ and their videos names. use ActivityPhp\Server; /* ------------------------------------------------------------------ - | We'll use the following definitions to fit PeerTube's dialect + | We'll use the following definitions to fit PeerTube's dialect ------------------------------------------------------------------ */ $peertube = [ 'Group' => ['support'], 'Video' => [ - 'uuid', 'category', 'language', 'views', 'sensitive', 'waitTranscoding', - 'state', 'commentsEnabled', 'support', 'subtitleLanguage', 'likes', + 'uuid', 'category', 'language', 'views', 'sensitive', 'waitTranscoding', + 'state', 'commentsEnabled', 'support', 'subtitleLanguage', 'likes', 'dislikes', 'shares', 'comments', 'licence' ], 'Image' => ['width', 'height'], @@ -183,11 +183,10 @@ ________________________________________________________________________ Read more --------- +- [An even better way to fetch Peertube Outbox activities]({{ site.doc_baseurl }}/fetch-peertube-outbox-activities-using-ontologies.html) - [Extending ActivityPub Vocabulary with custom dialects]({{ site.doc_baseurl }}/activitypub-dialects-management.html). - - [Configuring a server instance]({{ site.doc_baseurl }}/activitypub-server-usage.html). - - [Server methods]({{ site.doc_baseurl }}/#server).