diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index cfb14c7..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,11 +0,0 @@ -image: php:7.1-alpine - -before_script: -- apk update -- apk add git -- curl -sS https://getcomposer.org/installer | php -- php composer.phar install - -test: - script: - - php composer.phar test \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..98158df --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: php +php: + - 7.1 + - 7.2 + - 7.3 + - 7.4 +install: + - composer install +script: composer test \ No newline at end of file diff --git a/README.md b/README.md index 8d2636c..49ef33a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Flatrr +[![Build Status](https://travis-ci.org/jobyone/flatrr.svg?branch=main)](https://travis-ci.org/jobyone/flatrr) + ## What Flatrr does Flatrr is a utility library for accessing arrays via flattened key names. So, for example, rather than using `$arr['foo']['bar']` you could use `$arr['foo.bar']`. Mostly this is useful if you want to use string building to make the keys you're going to use to access an array.