Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-mongodb
Project
Project
Details
Activity
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
sinan
laravel-mongodb
Commits
d2fe7da8
Unverified
Commit
d2fe7da8
authored
Jul 22, 2018
by
Jens Segers
Committed by
GitHub
Jul 22, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1553 from Smolevich/changes-in-travis-build
Changes in travis build
parents
1d2807b4
d1d06753
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
.travis.yml
.travis.yml
+1
-2
Dockerfile
Dockerfile
+6
-3
docker-compose.yml
docker-compose.yml
+2
-1
No files found.
.travis.yml
View file @
d2fe7da8
...
...
@@ -12,9 +12,8 @@ install:
-
docker version
-
sudo pip install docker-compose
-
docker-compose version
-
sed -i -e "s/php:cli/php:${TRAVIS_PHP_VERSION}-cli/g" Dockerfile
-
cat Dockerfile
-
docker-compose build
-
docker-compose build
--build-arg PHP_VERSION=${TRAVIS_PHP_VERSION}
script
:
-
docker-compose up --exit-code-from php
Dockerfile
View file @
d2fe7da8
FROM
php:cli
ARG
PHP_VERSION
FROM
php:${PHP_VERSION}-cli
RUN
pecl
install
xdebug
RUN
apt-get update
&&
\
apt-get
install
-y
autoconf pkg-config libssl-dev git
&&
\
pecl
install
mongodb git zlib1g-dev
&&
docker-php-ext-enable mongodb
&&
\
apt-get
install
-y
autoconf pkg-config libssl-dev git zlib1g-dev
RUN
pecl
install
mongodb
&&
docker-php-ext-enable mongodb
&&
\
docker-php-ext-install
-j
$(
nproc
)
pdo pdo_mysql zip
&&
docker-php-ext-enable xdebug
RUN
curl
-sS
https://getcomposer.org/installer | php
\
...
...
docker-compose.yml
View file @
d2fe7da8
version
:
'
3'
services
:
php
:
container_name
:
php
build
:
...
...
@@ -10,6 +9,8 @@ services:
volumes
:
-
.:/code
working_dir
:
/code
environment
:
PHP_VERSION
:
7.1
command
:
bash -c "composer install --prefer-source --no-interaction && php ./vendor/bin/phpunit"
depends_on
:
-
mysql
...
...
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