Skip to content

Commit 62a9c4c

Browse files
authored
Merge pull request #59 from php-http/cleanup-build
use semantic branch name and avoid double builds
2 parents a006d91 + 53ecd6c commit 62a9c4c

File tree

5 files changed

+6
-9
lines changed

5 files changed

+6
-9
lines changed

.github/workflows/tests.yml

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: tests
22

33
on:
44
push:
5+
branches:
6+
- '*.x'
57
pull_request:
68

79
jobs:

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ please squash them before submitting with the following commands
7272
$ git rebase -i HEAD~3
7373
```
7474

75-
If your branch conflicts with the master branch, you will need to rebase and repush it with the following commands:
75+
If your branch conflicts with the target branch, you will need to rebase and repush it with the following commands:
7676

7777
``` bash
7878
$ git remote add upstream [email protected]:orga/repo-name.git
79-
$ git pull --rebase upstream master
79+
$ git pull --rebase upstream 1.x
8080
$ git push -f origin feature-or-bug-fix-description
8181
```
8282

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Latest Version](https://img.shields.io/github/release/php-http/multipart-stream-builder.svg?style=flat-square)](https://github.com/php-http/multipart-stream-builder/releases)
44
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
5-
[![Build Status](https://img.shields.io/travis/php-http/multipart-stream-builder/master.svg?style=flat-square)](https://travis-ci.org/php-http/multipart-stream-builder)
5+
[![Build Status](https://github.com/php-http/multipart-stream-builder/actions/workflows/tests.yml/badge.svg)](https://github.com/php-http/multipart-stream-builder/actions/workflows/tests.yml)
66
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/php-http/multipart-stream-builder.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/multipart-stream-builder)
77
[![Quality Score](https://img.shields.io/scrutinizer/g/php-http/multipart-stream-builder.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/multipart-stream-builder)
88
[![Total Downloads](https://img.shields.io/packagist/dt/php-http/multipart-stream-builder.svg?style=flat-square)](https://packagist.org/packages/php-http/multipart-stream-builder)

composer.json

-5
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,5 @@
3535
"scripts": {
3636
"test": "vendor/bin/phpunit",
3737
"test-ci": "vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml"
38-
},
39-
"extra": {
40-
"branch-alias": {
41-
"dev-master": "1.x-dev"
42-
}
4338
}
4439
}

tests/FunctionTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function testSupportResources()
4040

4141
public function testSupportURIResources()
4242
{
43-
$url = 'https://raw.githubusercontent.com/php-http/multipart-stream-builder/master/tests/Resources/httplug.png';
43+
$url = 'https://raw.githubusercontent.com/php-http/multipart-stream-builder/1.x/tests/Resources/httplug.png';
4444
$resource = fopen($url, 'r');
4545

4646
$builder = new MultipartStreamBuilder();

0 commit comments

Comments
 (0)