Skip to content

Commit 17eca11

Browse files
committed
Add behat tests and build processes
1 parent deeb5f5 commit 17eca11

10 files changed

+54
-112
lines changed

.github/CODEOWNERS

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
* @seba-aln @650elx @raipubnub
2-
.github/* @parfeon @seba-aln @650elx @raipubnub
3-
README.md @techwritermat @kazydek
1+
* @raipubnub @650elx @seba-aln
2+
.travis/* @parfeon @raipubnub @650elx
3+
README.md @techwritermat

.github/workflows/commands-handler.yml

-27
This file was deleted.

.github/workflows/release.yml

-59
This file was deleted.

.github/workflows/release/versions.json

-15
This file was deleted.

.gitignore

+9-3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
.DS_Store
1313
coverage.clover
1414

15-
# GitHub Actions #
16-
##################
17-
.github/.release
15+
.travis/README.md
16+
.travis/scripts
17+
18+
deployment_keys
19+
deployment_keys-private
20+
deployment_keys.tar
21+
22+
.travis/github-labels-policy.json
23+
.travis/github-labels.json

.pubnub.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ sdks:
354354
- distribution-type: library
355355
distribution-repository: GitHub release
356356
package-name: php-4.3.0.zip
357-
location: https://github.com/pubnub/php/releases/tag/v4.3.0
357+
location: https://github.com/pubnub/php-private/releases/tag/v4.3.0
358358
requires:
359359
- name: rmccue/requests
360360
min-version: 1.0.0

.travis.yml

+38-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
language: php
22
dist: xenial
33
os: linux
4+
5+
env:
6+
global:
7+
- SOURCE_FOLDER_PATH="./"
8+
- TARGET_FOLDER_PATH="./"
9+
10+
before_install:
11+
- ./.travis/bootstrap.sh
12+
- ./.travis/scripts/key_decrypt.sh deployment_keys.tar deployment_keys $encrypted_2a5fd2384630_key $encrypted_2a5fd2384630_iv
13+
- ./.travis/scripts/git_config.sh
414

515
install:
616
- composer self-update && composer --version
@@ -15,6 +25,21 @@ stages:
1525
- name: "code coverage"
1626
if: |
1727
type == pull_request
28+
- name: "release candidate"
29+
if: |
30+
type != pull_request \
31+
AND tag IS present \
32+
AND tag =~ ^v\d+\.\d+\.\d+-rc\.\d+$
33+
- name: "release"
34+
if: |
35+
type != pull_request \
36+
AND tag IS present \
37+
AND tag =~ ^v\d+\.\d+\.\d+$
38+
- name: "synchronize"
39+
if: |
40+
type != pull_request \
41+
AND tag IS present \
42+
AND tag =~ ^v?\d+\.\d+\.\d+-nodeploy\.\d+$
1843
1944
jobs:
2045
include:
@@ -39,4 +64,16 @@ jobs:
3964
php: '7.3'
4065
script: vendor/bin/phpunit --verbose --coverage-clover=coverage.xml
4166
after_success:
42-
- bash <(curl -s https://codecov.io/bash)
67+
- bash <(curl -s https://codecov.io/bash)
68+
- stage: "release candidate"
69+
name: "Deploy release candidate"
70+
php: '7.3'
71+
script: ./.travis/scripts/deploy.sh release-candidate pubnub/php
72+
- stage: "release"
73+
name: "Deploy release"
74+
php: '7.3'
75+
script: ./.travis/scripts/deploy.sh release pubnub/php
76+
- stage: "synchronize"
77+
name: "Not deployable synchronization"
78+
php: '7.3'
79+
script: ./.travis/scripts/synchronization.sh pubnub/php

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PubNub PHP SDK (V4)
22

3-
[![Build Status](https://travis-ci.com/pubnub/php.svg?branch=master)](https://travis-ci.com/pubnub/php)
3+
[![Build Status](https://travis-ci.com/pubnub/php-private.svg?token=V4772uMGPqyaA9eaPg8s&branch=master)](https://travis-ci.com/pubnub/php-private)
44
[![codecov](https://codecov.io/gh/pubnub/php/branch/master/graph/badge.svg)](https://codecov.io/gh/pubnub/php)
55
[![Docs](https://img.shields.io/badge/docs-online-blue.svg)](https://www.pubnub.com/docs/php/pubnub-php-sdk)
66
![GitHub release (latest by date)](https://img.shields.io/github/v/release/pubnub/php)

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"require": {
1919
"php": ">=5.6.0",
2020
"rmccue/requests": "^1.0",
21-
"monolog/monolog": "^1.1|^2.0"
21+
"monolog/monolog": "^1.26"
2222
},
2323
"require-dev": {
2424
"phpunit/phpunit": "^5.7"

examples/Time.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require_once __DIR__ . '/../src/autoloader.php';
3+
require_once __DIR__ . '/../vendor/autoload.php';
44

55

66
$pnconfig = \PubNub\PNConfiguration::demoKeys();

0 commit comments

Comments
 (0)