Skip to content

Commit 6c37c82

Browse files
authored
Merge pull request #13 from Hackwar/drone_master
Switching from Travis to Drone
2 parents f8d8204 + 046903f commit 6c37c82

File tree

5 files changed

+320
-35
lines changed

5 files changed

+320
-35
lines changed

.drone.jsonnet

+114
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
local volumes = [
2+
{
3+
name: "composer-cache",
4+
path: "/tmp/composer-cache",
5+
},
6+
];
7+
8+
local hostvolumes = [
9+
{
10+
name: "composer-cache",
11+
host: {path: "/tmp/composer-cache"}
12+
},
13+
];
14+
15+
local composer(phpversion, params) = {
16+
name: "composer",
17+
image: "joomlaprojects/docker-images:php" + phpversion,
18+
volumes: volumes,
19+
commands: [
20+
"php -v",
21+
"composer update " + params,
22+
]
23+
};
24+
25+
local phpunit(phpversion) = {
26+
name: "PHPUnit",
27+
image: "joomlaprojects/docker-images:php" + phpversion,
28+
[if phpversion == "8.0" then "failure"]: "ignore",
29+
commands: ["vendor/bin/phpunit"]
30+
};
31+
32+
local pipeline(name, phpversion, params) = {
33+
kind: "pipeline",
34+
name: "PHP " + name,
35+
volumes: hostvolumes,
36+
steps: [
37+
composer(phpversion, params),
38+
phpunit(phpversion)
39+
],
40+
};
41+
42+
[
43+
{
44+
kind: "pipeline",
45+
name: "Codequality",
46+
volumes: hostvolumes,
47+
steps: [
48+
{
49+
name: "composer",
50+
image: "joomlaprojects/docker-images:php7.4",
51+
volumes: volumes,
52+
commands: [
53+
"php -v",
54+
"composer update",
55+
"composer require phpmd/phpmd phpstan/phpstan"
56+
]
57+
},
58+
{
59+
name: "phpcs",
60+
image: "joomlaprojects/docker-images:php7.4",
61+
depends: [ "composer" ],
62+
commands: [
63+
"vendor/bin/phpcs --config-set installed_paths vendor/joomla/coding-standards",
64+
"vendor/bin/phpcs -p --report=full --extensions=php --standard=ruleset.xml src/"
65+
]
66+
},
67+
{
68+
name: "phpmd",
69+
image: "joomlaprojects/docker-images:php7.4",
70+
depends: [ "composer" ],
71+
failure: "ignore",
72+
commands: [
73+
"vendor/bin/phpmd src text cleancode",
74+
"vendor/bin/phpmd src text codesize",
75+
"vendor/bin/phpmd src text controversial",
76+
"vendor/bin/phpmd src text design",
77+
"vendor/bin/phpmd src text unusedcode",
78+
]
79+
},
80+
{
81+
name: "phpstan",
82+
image: "joomlaprojects/docker-images:php7.4",
83+
depends: [ "composer" ],
84+
failure: "ignore",
85+
commands: [
86+
"vendor/bin/phpstan analyse src",
87+
]
88+
},
89+
{
90+
name: "phploc",
91+
image: "joomlaprojects/docker-images:php7.4",
92+
depends: [ "composer" ],
93+
failure: "ignore",
94+
commands: [
95+
"phploc src",
96+
]
97+
},
98+
{
99+
name: "phpcpd",
100+
image: "joomlaprojects/docker-images:php7.4",
101+
depends: [ "composer" ],
102+
failure: "ignore",
103+
commands: [
104+
"phpcpd src",
105+
]
106+
}
107+
]
108+
},
109+
pipeline("7.2 lowest", "7.2", "--prefer-stable --prefer-lowest"),
110+
pipeline("7.2", "7.2", "--prefer-stable"),
111+
pipeline("7.3", "7.3", "--prefer-stable"),
112+
pipeline("7.4", "7.4", "--prefer-stable"),
113+
pipeline("8.0", "8.0", "--ignore-platform-reqs --prefer-stable")
114+
]

.drone.yml

+204
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,204 @@
1+
---
2+
kind: pipeline
3+
name: Codequality
4+
5+
platform:
6+
os: linux
7+
arch: amd64
8+
9+
steps:
10+
- name: composer
11+
image: joomlaprojects/docker-images:php7.4
12+
commands:
13+
- php -v
14+
- composer update
15+
- composer require phpmd/phpmd phpstan/phpstan
16+
volumes:
17+
- name: composer-cache
18+
path: /tmp/composer-cache
19+
20+
- name: phpcs
21+
image: joomlaprojects/docker-images:php7.4
22+
commands:
23+
- vendor/bin/phpcs --config-set installed_paths vendor/joomla/coding-standards
24+
- vendor/bin/phpcs -p --report=full --extensions=php --standard=ruleset.xml src/
25+
26+
- name: phpmd
27+
image: joomlaprojects/docker-images:php7.4
28+
commands:
29+
- vendor/bin/phpmd src text cleancode
30+
- vendor/bin/phpmd src text codesize
31+
- vendor/bin/phpmd src text controversial
32+
- vendor/bin/phpmd src text design
33+
- vendor/bin/phpmd src text unusedcode
34+
failure: ignore
35+
36+
- name: phpstan
37+
image: joomlaprojects/docker-images:php7.4
38+
commands:
39+
- vendor/bin/phpstan analyse src
40+
failure: ignore
41+
42+
- name: phploc
43+
image: joomlaprojects/docker-images:php7.4
44+
commands:
45+
- phploc src
46+
failure: ignore
47+
48+
- name: phpcpd
49+
image: joomlaprojects/docker-images:php7.4
50+
commands:
51+
- phpcpd src
52+
failure: ignore
53+
54+
volumes:
55+
- name: composer-cache
56+
host:
57+
path: /tmp/composer-cache
58+
59+
---
60+
kind: pipeline
61+
name: PHP 7.2 lowest
62+
63+
platform:
64+
os: linux
65+
arch: amd64
66+
67+
steps:
68+
- name: composer
69+
image: joomlaprojects/docker-images:php7.2
70+
commands:
71+
- php -v
72+
- composer update --prefer-stable --prefer-lowest
73+
volumes:
74+
- name: composer-cache
75+
path: /tmp/composer-cache
76+
77+
- name: PHPUnit
78+
image: joomlaprojects/docker-images:php7.2
79+
commands:
80+
- vendor/bin/phpunit
81+
82+
volumes:
83+
- name: composer-cache
84+
host:
85+
path: /tmp/composer-cache
86+
87+
---
88+
kind: pipeline
89+
name: PHP 7.2
90+
91+
platform:
92+
os: linux
93+
arch: amd64
94+
95+
steps:
96+
- name: composer
97+
image: joomlaprojects/docker-images:php7.2
98+
commands:
99+
- php -v
100+
- composer update --prefer-stable
101+
volumes:
102+
- name: composer-cache
103+
path: /tmp/composer-cache
104+
105+
- name: PHPUnit
106+
image: joomlaprojects/docker-images:php7.2
107+
commands:
108+
- vendor/bin/phpunit
109+
110+
volumes:
111+
- name: composer-cache
112+
host:
113+
path: /tmp/composer-cache
114+
115+
---
116+
kind: pipeline
117+
name: PHP 7.3
118+
119+
platform:
120+
os: linux
121+
arch: amd64
122+
123+
steps:
124+
- name: composer
125+
image: joomlaprojects/docker-images:php7.3
126+
commands:
127+
- php -v
128+
- composer update --prefer-stable
129+
volumes:
130+
- name: composer-cache
131+
path: /tmp/composer-cache
132+
133+
- name: PHPUnit
134+
image: joomlaprojects/docker-images:php7.3
135+
commands:
136+
- vendor/bin/phpunit
137+
138+
volumes:
139+
- name: composer-cache
140+
host:
141+
path: /tmp/composer-cache
142+
143+
---
144+
kind: pipeline
145+
name: PHP 7.4
146+
147+
platform:
148+
os: linux
149+
arch: amd64
150+
151+
steps:
152+
- name: composer
153+
image: joomlaprojects/docker-images:php7.4
154+
commands:
155+
- php -v
156+
- composer update --prefer-stable
157+
volumes:
158+
- name: composer-cache
159+
path: /tmp/composer-cache
160+
161+
- name: PHPUnit
162+
image: joomlaprojects/docker-images:php7.4
163+
commands:
164+
- vendor/bin/phpunit
165+
166+
volumes:
167+
- name: composer-cache
168+
host:
169+
path: /tmp/composer-cache
170+
171+
---
172+
kind: pipeline
173+
name: PHP 8.0
174+
175+
platform:
176+
os: linux
177+
arch: amd64
178+
179+
steps:
180+
- name: composer
181+
image: joomlaprojects/docker-images:php8.0
182+
commands:
183+
- php -v
184+
- composer update --ignore-platform-reqs --prefer-stable
185+
volumes:
186+
- name: composer-cache
187+
path: /tmp/composer-cache
188+
189+
- name: PHPUnit
190+
image: joomlaprojects/docker-images:php8.0
191+
commands:
192+
- vendor/bin/phpunit
193+
failure: ignore
194+
195+
volumes:
196+
- name: composer-cache
197+
host:
198+
path: /tmp/composer-cache
199+
200+
---
201+
kind: signature
202+
hmac: 95070c8b43cb56c43ab9ba64cc0afac4c0aa42e52ff8f7b1b40276e60218d86b
203+
204+
...

.travis.yml

-33
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## The Crypt Package [![Build Status](https://travis-ci.org/joomla-framework/crypt.png?branch=master)](https://travis-ci.org/joomla-framework/crypt)
1+
## The Crypt Package [![Build Status](https://ci.joomla.org/api/badges/joomla-framework/crypt/status.svg)](https://ci.joomla.org/joomla-framework/crypt)
22

33
The Crypt package provides a set of classes that can be used for encryption and decryption of data.
44

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"homepage": "https://github.com/joomla-framework/crypt",
77
"license": "GPL-2.0-or-later",
88
"require": {
9-
"php": "^7.2.5"
9+
"php": "^7.2.5|^8.0"
1010
},
1111
"require-dev": {
1212
"defuse/php-encryption": "^2.0",

0 commit comments

Comments
 (0)