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
1d2807b4
Commit
1d2807b4
authored
Jun 18, 2018
by
Jens Segers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
👷
Travis
parent
32742edf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
22 deletions
+7
-22
.travis.yml
.travis.yml
+3
-15
Dockerfile
Dockerfile
+2
-2
docker-compose.yml
docker-compose.yml
+2
-2
entrypoint.sh
docker/entrypoint.sh
+0
-3
No files found.
.travis.yml
View file @
1d2807b4
...
@@ -9,24 +9,12 @@ services:
...
@@ -9,24 +9,12 @@ services:
-
docker
-
docker
install
:
install
:
# Update docker-engine using Ubuntu 'trusty' apt repo
-
>
curl -sSL "https://get.docker.com/gpg" |
sudo -E apt-key add -
-
>
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" |
sudo tee -a /etc/apt/sources.list
-
sudo apt-get update
-
>
sudo apt-get -o Dpkg::Options::="--force-confdef" \
-o Dpkg::Options::="--force-confold" --assume-yes install docker-engine --allow-unauthenticated
-
docker version
-
docker version
# Update docker-compose via pip
-
sudo pip install docker-compose
-
sudo pip install docker-compose
-
docker-compose version
-
docker-compose version
-
docker-compose up --build -d
-
sed -i -e "s/php:cli/php:${TRAVIS_PHP_VERSION}-cli/g" Dockerfile
-
docker ps -a
-
cat Dockerfile
-
docker-compose build
script
:
script
:
-
docker-compose up --exit-code-from php
-
docker-compose up --exit-code-from php
docker/
Dockerfile
→
Dockerfile
View file @
1d2807b4
FROM
php:
7.1-
cli
FROM
php:cli
RUN
pecl
install
xdebug
RUN
pecl
install
xdebug
...
@@ -11,4 +11,4 @@ RUN curl -sS https://getcomposer.org/installer | php \
...
@@ -11,4 +11,4 @@ RUN curl -sS https://getcomposer.org/installer | php \
&&
mv
composer.phar /usr/local/bin/
\
&&
mv
composer.phar /usr/local/bin/
\
&&
ln
-s
/usr/local/bin/composer.phar /usr/local/bin/composer
&&
ln
-s
/usr/local/bin/composer.phar /usr/local/bin/composer
ENV
PATH="~/.composer/vendor/bin:./vendor/bin:${PATH}"
ENV
PATH="~/.composer/vendor/bin:./vendor/bin:${PATH}"
\ No newline at end of file
docker-compose.yml
View file @
1d2807b4
...
@@ -6,11 +6,11 @@ services:
...
@@ -6,11 +6,11 @@ services:
container_name
:
php
container_name
:
php
build
:
build
:
context
:
.
context
:
.
dockerfile
:
docker/
Dockerfile
dockerfile
:
Dockerfile
volumes
:
volumes
:
-
.:/code
-
.:/code
working_dir
:
/code
working_dir
:
/code
command
:
docker/entrypoint.sh
command
:
bash -c "composer install --prefer-source --no-interaction && php ./vendor/bin/phpunit"
depends_on
:
depends_on
:
-
mysql
-
mysql
-
mongodb
-
mongodb
...
...
docker/entrypoint.sh
deleted
100755 → 0
View file @
32742edf
#!/usr/bin/env bash
sleep
3
&&
composer
install
--prefer-source
--no-interaction
&&
php ./vendor/bin/phpunit
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