Skip to content

Commit e49f7c8

Browse files
committed
Add gitpod config
this commit adds support for Gitpod.io, a free automated dev environment that makes contributing and generally working on GitHub projects much easier. It allows anyone to start a ready-to-code dev environment for any branch, issue and pull request with a single click.
1 parent fceb2af commit e49f7c8

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.gitpod.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
tasks:
2+
- init: composer install
3+
command: php vendor/bin/phpunit

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ A PHP 7.0+ API to retrieve and parse global weather data from
55
This project aims to normalise the provided data and remove inconsistencies.
66
It is not maintained by OpenWeatherMap and not an official API wrapper.
77

8+
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/cmfcmf/OpenWeatherMap-PHP-API)
89
[![Build Status](https://travis-ci.org/cmfcmf/OpenWeatherMap-PHP-Api.svg?branch=master)](https://travis-ci.org/cmfcmf/OpenWeatherMap-PHP-Api)
910
[![license](https://img.shields.io/github/license/cmfcmf/OpenWeatherMap-PHP-Api.svg)](https://github.com/cmfcmf/OpenWeatherMap-PHP-Api/blob/master/LICENSE)
1011
[![release](https://img.shields.io/github/release/cmfcmf/OpenWeatherMap-PHP-Api.svg)](https://github.com/cmfcmf/OpenWeatherMap-PHP-Api/releases)
@@ -22,6 +23,12 @@ Contributing
2223
============
2324
I'm happy about every **pull request** you open and **issue** you find to help make this API **more awesome**. Please note that it might sometimes take me a while to get back to you. Feel free to ping me if I don't respond.
2425

26+
## GitPod
27+
28+
You can use GitPod to launch a fully functional development environment right in your browser. Simply click on the following badge:
29+
30+
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/cmfcmf/OpenWeatherMap-PHP-API)
31+
2532
## Vagrant
2633

2734
You can use [Vagrant](https://vagrantup.com) to kick-start your development.
@@ -37,13 +44,13 @@ You can also use Docker to start developing this library. First install dependen
3744
--user $(id -u):$(id -g) \
3845
composer install
3946

40-
And then execute an example:
47+
And then execute the tests:
4148

4249
docker run --rm --interactive --tty \
4350
--volume $PWD:/app -w /app \
4451
php bash
4552

46-
> php Examples/CurrentWeather.php
53+
> php vendor/bin/phpunit
4754

4855
## Documentation
4956

0 commit comments

Comments
 (0)