Skip to content

Commit e0b6338

Browse files
authored
add github workflow (#3)
1 parent fb6b613 commit e0b6338

File tree

4 files changed

+43
-54
lines changed

4 files changed

+43
-54
lines changed

.c9build.sh

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build
2+
on:
3+
push:
4+
schedule:
5+
- cron: '0 1 * * 0'
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-18.04
10+
steps:
11+
- uses: shivammathur/setup-php@v2
12+
with:
13+
php-version: 5.6
14+
extensions: sqlite
15+
tools: composer, phpcs, phpmd, phpunit
16+
- uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 50
19+
- uses: testspace-com/setup-testspace@v1
20+
with:
21+
domain: samples
22+
- name: Install
23+
run: |
24+
composer install
25+
- name: Analyze
26+
run: |
27+
vendor/bin/phpcs src tests --report-gitblame=analysis-sniffer-blame.txt --report-checkstyle=analysis-sniffer.xml || true
28+
vendor/bin/phpmd src,tests xml codesize,naming,unusedcode --reportfile analysis-mess.xml || true
29+
- name: Test
30+
run: |
31+
vendor/bin/phpunit tests/unit --log-junit tests-results.xml --coverage-clover coverage.xml
32+
- name: Push
33+
run: |
34+
testspace @.testspace.txt
35+
if: always()

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22

33
***
44

5-
## PHP/PHPUnit sample for demonstrating Testspace
5+
## PHP/PHPUnit sample for demonstrating Testspace
66

77
Sample demonstrates techniques for using Testspace with PHP code and the [PHPUnit test framework](https://phpunit.de/).
88

99
* Using a Testspace Project that is `connected` with this GitHub Repo
1010
* Using 3 Online CI services for demonstration purposes only
11-
* Can review the Results at [testspace-samples:php.phpunit](https://samples.testspace.com/projects/testspace-samples:php.phpunit)
12-
* Refer to our [Getting Started](https://help.testspace.com/getting-started) help articles for more information
11+
* Can review the Results at [testspace-samples:php.phpunit](https://samples.testspace.com/projects/testspace-samples:php.phpunit)
12+
* Refer to our [Help](https://help.testspace.com/) for more information
1313

1414
***
1515
Using Multiple Online CI Services:
1616

17+
![Build](https://github.com/testspace-samples/php.phpunit/workflows/Build/badge.svg)
1718
[![Build Status](https://travis-ci.org/testspace-samples/php.phpunit.svg?branch=master)](https://travis-ci.org/testspace-samples/php.phpunit)
1819
[![CircleCI](https://circleci.com/gh/testspace-samples/php.phpunit.svg?style=svg)](https://circleci.com/gh/testspace-samples/php.phpunit)
19-
[![Run Status](https://api.shippable.com/projects/57029e282a8192902e1b8d56/badge?branch=master)](https://app.shippable.com/projects/57029e282a8192902e1b8d56)
2020

2121
***
2222
Publishing **Test Content** using www.testspace.com.
@@ -27,7 +27,7 @@ Publishing **Test Content** using www.testspace.com.
2727

2828
***
2929

30-
Download and configure the Testspace client
30+
Download and configure the Testspace client
3131

3232
<pre>
3333
mkdir -p $HOME/bin
@@ -42,7 +42,7 @@ Installation
4242
composer update
4343
</pre>
4444

45-
Running Static Analysis:
45+
Running Static Analysis:
4646

4747
<pre>
4848
vendor/bin/phpcs src tests --report-gitblame=analysis-sniffer-blame.txt --report-checkstyle=analysis-sniffer.xml
@@ -57,6 +57,6 @@ vendor/bin/phpunit tests/unit --log-junit tests-results.xml --coverage-clover co
5757
Push Content using Testspace client. Note that ".testspace.txt" contains list of items to push.
5858

5959
<pre>
60-
testspace @.testspace.txt
61-
</pre>
60+
testspace @.testspace.txt
61+
</pre>
6262

shippable.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)