Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yii2bootstrap
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
yii2bootstrap
Commits
e4263ee9
Commit
e4263ee9
authored
May 03, 2015
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added Makefile for docker based test
parent
a4835e3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
.gitignore
.gitignore
+6
-0
Makefile
Makefile
+26
-0
No files found.
.gitignore
View file @
e4263ee9
...
@@ -24,3 +24,9 @@ composer.phar
...
@@ -24,3 +24,9 @@ composer.phar
phpunit.phar
phpunit.phar
# local phpunit config
# local phpunit config
/phpunit.xml
/phpunit.xml
/tests/runtime
/tests/data/config.local.php
/tests/docker
/tests/dockerids
Makefile
0 → 100644
View file @
e4263ee9
# default versions to test against
# these can be overridden by setting the environment variables in the shell
PHP_VERSION
=
php-5.6.8
YII_VERSION
=
dev-master
# ensure all the configuration variables above are in environment of the shell commands below
export
help
:
@
echo
"make test - run phpunit tests using a docker environment"
# @echo "make clean - stop docker and remove container"
test
:
docker-php
composer require
"yiisoft/yii2:
${
YII_VERSION
}
"
--prefer-dist
composer
install
--prefer-dist
docker run
--rm
=
true
-v
$(
shell
pwd
)
:/opt/test yiitest/php:
${
PHP_VERSION
}
phpunit
--verbose
--color
docker-php
:
dockerfiles
cd
tests/docker/php
&&
sh build.sh
dockerfiles
:
test
-d
tests/docker
||
git clone https://github.com/cebe/jenkins-test-docker tests/docker
cd
tests/docker
&&
git checkout
--
.
&&
git pull
mkdir
-p
tests/dockerids
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment