Skip to content

Commit a8d7d3d

Browse files
committed
CI Scripts
1 parent 2d75642 commit a8d7d3d

File tree

2 files changed

+18
-21
lines changed

2 files changed

+18
-21
lines changed

.scrutinizer.yml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,7 @@ build:
4747
phar.readonly: 'Off'
4848
tests:
4949
override:
50-
- phive --no-progress install --target ./bin --trust-gpg-keys 0x4AA394086372C20A,0x8E730BA25823D8B5,0x31C7E470E2138192,0x4AA394086372C20A,0x0F9684B8B16B7AB0
51-
- composer self-update
52-
- composer --version
53-
- composer global require hirak/prestissimo --no-plugins
54-
- composer install --prefer-dist --no-interaction
55-
- npm install yarn -g
56-
- chmod -R +x ./bin
50+
- sh ./config/ci-setup.sh
5751
-
5852
command: './bin/phpunit --coverage-clover=coverage.xml --bootstrap ./tests/bootstrap.php'
5953
coverage:
@@ -68,13 +62,7 @@ build:
6862
phar.readonly: 'Off'
6963
tests:
7064
override:
71-
- phive --no-progress install --target ./bin --trust-gpg-keys 0x4AA394086372C20A,0x8E730BA25823D8B5,0x31C7E470E2138192,0x4AA394086372C20A,0x0F9684B8B16B7AB0
72-
- composer self-update
73-
- composer --version
74-
- composer global require hirak/prestissimo --no-plugins
75-
- composer install --prefer-dist --no-interaction
76-
- npm install yarn -g
77-
- chmod -R +x ./bin
65+
- sh ./config/ci-setup.sh
7866
-
7967
command: './bin/phpunit --coverage-clover=coverage.xml --bootstrap ./tests/bootstrap.php'
8068
coverage:
@@ -89,13 +77,7 @@ build:
8977
phar.readonly: 'Off'
9078
tests:
9179
override:
92-
- phive --no-progress install --target ./bin --trust-gpg-keys 0x4AA394086372C20A,0x8E730BA25823D8B5,0x31C7E470E2138192,0x4AA394086372C20A,0x0F9684B8B16B7AB0
93-
- composer self-update
94-
- composer --version
95-
- composer global require hirak/prestissimo --no-plugins
96-
- composer install --prefer-dist --no-interaction
97-
- npm install yarn -g
98-
- chmod -R +x ./bin
80+
- sh ./config/ci-setup.sh
9981
-
10082
command: './bin/phpunit --coverage-clover=coverage.xml --bootstrap ./tests/bootstrap.php'
10183
coverage:

config/ci-setup.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
3+
wget -O phive.phar https://phar.io/releases/phive.phar
4+
wget -O phive.phar.asc https://phar.io/releases/phive.phar.asc
5+
gpg --keyserver pool.sks-keyservers.net --recv-keys 0x9D8A98B29B2D5D79
6+
gpg --verify phive.phar.asc phive.phar
7+
chmod +x phive.phar
8+
sudo mv phive.phar /usr/local/bin/phive
9+
phive --no-progress install --target ./bin --trust-gpg-keys 0x4AA394086372C20A,0x8E730BA25823D8B5,0x31C7E470E2138192,0x4AA394086372C20A,0x0F9684B8B16B7AB0
10+
composer self-update
11+
composer --version
12+
composer global require hirak/prestissimo --no-plugins
13+
composer install --prefer-dist --no-interaction
14+
npm install yarn -g
15+
chmod -R +x ./bin

0 commit comments

Comments
 (0)