File tree Expand file tree Collapse file tree 6 files changed +28
-8
lines changed Expand file tree Collapse file tree 6 files changed +28
-8
lines changed Original file line number Diff line number Diff line change 5
5
machine : true
6
6
steps :
7
7
- checkout
8
- - run : make docker-build
8
+ - run : make docker-build-clean
9
9
- run : make build
10
10
- run : make phan
11
11
- run : make test
14
14
docker login -u $DOCKER_USER -p $DOCKER_PASS
15
15
docker push ircmaxell/php-compiler:16.04-dev
16
16
docker push ircmaxell/php-compiler:16.04
17
- fi
17
+ fi
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ RUN ./buildconf && \
16
16
WORKDIR ../
17
17
18
18
RUN curl --silent --show-error https://getcomposer.org/installer | php
19
+ RUN mv composer.phar /usr/local/bin/composer
19
20
20
21
ENV PHP="/usr/local/bin/php" , PHP_7_4="/usr/local/bin/php" , PHP_CS_FIXER_IGNORE_ENV="true"
21
22
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ COPY ./ /compiler
4
4
5
5
WORKDIR /compiler
6
6
7
- RUN php / composer.phar install --no-ansi --no-dev --no-interaction --no-progress --no-scripts --optimize-autoloader
7
+ RUN composer install --no-ansi --no-dev --no-interaction --no-progress --no-scripts --optimize-autoloader
8
8
9
9
ENTRYPOINT ["php" , "/compiler/bin/jit.php" ]
10
10
11
- CMD ["-r" , "' echo \" Hello World\n\" ;' " ]
11
+ CMD ["-r" , "echo \" Hello World\n\" ;" ]
Original file line number Diff line number Diff line change
1
+ --- Expansion.php 2019-04-16 18:58:13.254005966 +0000
2
+ +++ Expansion.php 2019-04-16 18:59:03.202020632 +0000
3
+ @@ -380,6 +380,9 @@
4
+
5
+ $delimiters = $result->{'delimiters'};
6
+
7
+ + // HACK ALERT: THIS SHOULDN'T HAPPEN AND SHOULD BE FIXED UPSTREAM
8
+ + if (!is_array($context)) $context = [$context];
9
+ +
10
+ // normalize associative arrays
11
+ if (array_values($context) !== $context) $context = [$context];
Original file line number Diff line number Diff line change 2
2
3
3
.PHONY : composer-install
4
4
composer-install :
5
- docker run -v $(shell pwd) :/compiler ircmaxell/php-compiler:16.04-dev php /composer.phar install --no-ansi --no-interaction --no-progress
5
+ docker run -v $(shell pwd) :/compiler ircmaxell/php-compiler:16.04-dev composer install --no-ansi --no-interaction --no-progress
6
+ docker run -v $(shell pwd) :/compiler ircmaxell/php-compiler:16.04-dev php vendor/pre/plugin/source/environment.php
7
+ patch -p0 -d vendor/pre/plugin/hidden/yay/yay/src < Docker/yaypatch.patch
6
8
7
9
.PHONY : composer-update
8
10
composer-update :
9
- docker run -v $(shell pwd) :/compiler ircmaxell/php-compiler:16.04-dev php / composer.phar update --no-ansi --no-interaction --no-progress
11
+ docker run -v $(shell pwd) :/compiler ircmaxell/php-compiler:16.04-dev composer update --no-ansi --no-interaction --no-progress
10
12
11
13
.PHONY : shell
12
14
shell :
13
15
docker run -it --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $(shell pwd) :/compiler ircmaxell/php-compiler:16.04-dev /bin/bash
14
16
17
+ .PHONY : docker-build-clean
18
+ docker-build-clean :
19
+ docker build --no-cache -t ircmaxell/php-compiler:16.04-dev Docker/dev/ubuntu-16.04
20
+ docker build --no-cache -t ircmaxell/php-compiler:16.04 -f Docker/ubuntu-16.04/Dockerfile .
21
+
15
22
.PHONY : docker-build
16
23
docker-build :
24
+
17
25
docker build -t ircmaxell/php-compiler:16.04-dev Docker/dev/ubuntu-16.04
18
26
docker build --no-cache -t ircmaxell/php-compiler:16.04 -f Docker/ubuntu-16.04/Dockerfile .
19
27
46
54
47
55
.PHONY : test
48
56
test : rebuild-changed
49
- docker run -v $(shell pwd) :/compiler ircmaxell/php-compiler:16.04-dev php vendor/bin/phpunit
57
+ docker run -v $(shell pwd) :/compiler ircmaxell/php-compiler:16.04-dev php vendor/bin/phpunit
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
# This file is generated, changes you make will be lost.
4
- # Make your changes in /compiler/script/../ ext/types/strlen.pre instead.
4
+ # Make your changes in /compiler/ext/types/strlen.pre instead.
5
5
6
6
/*
7
7
* This file is part of PHP-Compiler, a PHP CFG Compiler for PHP code
You can’t perform that action at this time.
0 commit comments