File tree Expand file tree Collapse file tree 6 files changed +45
-4
lines changed Expand file tree Collapse file tree 6 files changed +45
-4
lines changed Original file line number Diff line number Diff line change 1
- language : php
1
+ language : php1
2
2
3
3
sudo : false
4
4
@@ -22,4 +22,4 @@ before_script:
22
22
23
23
script :
24
24
- vendor/bin/phpunit --verbose --coverage-text
25
- - if [ "$STATIC_ANALYSIS" != "" ]; then php phpstan.phar analyse --level=4 lib; fi;
25
+ - if [ "$STATIC_ANALYSIS" != "" ]; then php1 phpstan.phar analyse --level=4 lib; fi;
Original file line number Diff line number Diff line change
1
+ .PHONY : clean up test
2
+ clean : # # Clean up containers
3
+ docker-compose down -v
4
+
5
+ up : # # Up the containers
6
+ docker-compose build
7
+ docker-compose up -d
8
+
9
+ test : up # # Test API
10
+ docker-compose exec php composer install
11
+ docker-compose exec php /app/vendor/phpunit/phpunit/phpunit --no-configuration /app/test
Original file line number Diff line number Diff line change
1
+ version : " 3"
2
+ services :
3
+ php :
4
+ build : etc/docker/dev/php
5
+ volumes :
6
+ - .:/app
7
+ working_dir : /app
8
+ command : tail -f /dev/null
Original file line number Diff line number Diff line change
1
+ FROM php:7.2-cli
2
+
3
+ RUN echo "\n export TERM=xterm" >> /etc/bash.bashrc \
4
+ && apt-get update && apt-get install -y --no-install-recommends \
5
+ apt-utils apt-transport-https
6
+
7
+ RUN apt-get update && apt-get install -y --no-install-recommends \
8
+ curl \
9
+ git \
10
+ libzip-dev \
11
+ zip \
12
+ unzip \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
+ # Xdebug install
16
+ RUN pecl install zip \
17
+ && docker-php-ext-enable zip
18
+
19
+ # Composer and no dev vendor requirements
20
+ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
21
+
22
+ WORKDIR /app
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ public function __construct(Builder $httpClientBuilder = null)
83
83
$ this ->httpClientBuilder ->addPlugin (new HistoryPlugin ($ this ->responseHistory ));
84
84
$ this ->httpClientBuilder ->addPlugin (new ApiVersion ());
85
85
$ this ->httpClientBuilder ->addPlugin (new HeaderDefaultsPlugin ([
86
- 'User-Agent ' => 'php -gitlab-api (http://github.com/m4tthumphrey/php -gitlab-api) ' ,
86
+ 'User-Agent ' => 'php1 -gitlab-api (http://github.com/m4tthumphrey/php1 -gitlab-api) ' ,
87
87
]));
88
88
89
89
$ this ->setUrl ('https://gitlab.com ' );
Original file line number Diff line number Diff line change @@ -1105,7 +1105,7 @@ public function shouldRemoveLabel()
1105
1105
*/
1106
1106
public function shouldGetLanguages ()
1107
1107
{
1108
- $ expectedArray = ['php ' => 100 ];
1108
+ $ expectedArray = ['php1 ' => 100 ];
1109
1109
$ api = $ this ->getApiMock ();
1110
1110
$ api ->expects ($ this ->once ())
1111
1111
->method ('get ' )
You can’t perform that action at this time.
0 commit comments