File tree Expand file tree Collapse file tree 2 files changed +33
-6
lines changed Expand file tree Collapse file tree 2 files changed +33
-6
lines changed Original file line number Diff line number Diff line change 3
3
build :
4
4
working_directory : ~/project
5
5
docker :
6
- - image : circleci/php:7.2-browsers
6
+ - image : circleci/php:7.2
7
7
steps :
8
8
- checkout
9
- - restore_cache :
10
- key : dependencies-composer-{{ checksum "composer.json" }}
11
9
- run : composer global require bamarni/composer-bin-plugin
12
10
- run : composer bin phpstan require phpstan/phpstan "^0.11.5"
13
11
- run : composer bin phpcs require squizlabs/php_codesniffer "^3.4"
14
12
- run : composer install -n --prefer-dist
15
13
16
14
- save_cache :
17
- key : dependencies-composer-{{ checksum "composer.json" }}
15
+ key : dependencies-composer-{{ checksum "composer.json" }}-{{ .Revision }}
18
16
paths :
19
17
- ./vendor
20
18
- ./vendor-bin
21
19
test :
22
20
working_directory : ~/project
23
21
docker :
24
- - image : circleci/php:7.2-browsers
22
+ - image : circleci/php:7.2
25
23
steps :
26
24
- checkout
27
25
- restore_cache :
28
26
keys :
29
- - dependencies-composer-{{ checksum "composer.json" }}
27
+ - dependencies-composer-{{ checksum "composer.json" }}-{{ .Revision }}
30
28
31
29
- run : php vendor/bin/phpcs
32
30
- run : php vendor/bin/phpstan analyse src tests -l 1
33
31
- run : php vendor/bin/phpunit tests/
32
+
33
+ package :
34
+ working_directory : ~/project
35
+ docker :
36
+ - image : circleci/php:7.2
37
+ steps :
38
+ - checkout
39
+ - run : composer global require humbug/box "^3.7"
40
+ - run : composer install -n --prefer-dist --no-dev
41
+ - run : ~/.composer/vendor/bin/box compile -c box.json
42
+
43
+ - store_artifacts :
44
+ path : bin/chip.phar
45
+ destination : chip
34
46
workflows :
35
47
version : 2
36
48
build_and_test :
Original file line number Diff line number Diff line change
1
+ {
2
+ "main" : " bin/chip" ,
3
+ "banner" : [
4
+ " This file is part of the Chip project." ,
5
+ " " ,
6
+ " (c) phith0n <root@leavesongs.com>" ,
7
+ " https://github.com/phith0n/chip" ,
8
+ " " ,
9
+ " This source file is subject to the MIT license that is bundled" ,
10
+ " with this source code in the file LICENSE."
11
+ ],
12
+ "dump-autoload" : true ,
13
+ "exclude-dev-files" : true ,
14
+ "compression" : " GZ"
15
+ }
You can’t perform that action at this time.
0 commit comments