-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
90%: Migrate build to circleci (#139)
* wip * Add workflow * Use right image tag * Try a newer php image to test something * Continue futzing with docker images * Just doing what the error message says * use php orb * Take out matrix * wip * Updated config.yml * Updated config.yml * Updated config.yml * Use older machine * Updated config.yml * Updated config.yml * Updated config.yml * Updated config.yml * Updated config.yml * Updated config.yml * Use docker for build * Simplify logic * wip * Updated config.yml * Updated config.yml * Updated config.yml * Updated config.yml * Updated config.yml * Updated config.yml * Updated config.yml * Updated config.yml * Updated config.yml * Updated config.yml * Updated config.yml * Updated config.yml * Updated config.yml * Updated config.yml * Don't build the docker images as part of the build * Updated config.yml * Leave out the build config for one service and see what happens * Disable for each service * Add PHP 7.2 support * Abstract away mongo version * depend on the right service name * Use network and alias * Wrong syntax for matrix * Another stab at the parameters * Alias mongo via links instead * See if this install the correct version of phpunit * Add build status to readme * Remove php 7.4
- Loading branch information
Showing
14 changed files
with
158 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
version: 2.1 | ||
parameters: &version | ||
version: | ||
type: string | ||
default: "php55" | ||
|
||
commands: | ||
install_composer_dependencies: | ||
parameters: *version | ||
description: Install composer dependencies for << parameters.version >> | ||
steps: | ||
- run: docker-compose run << parameters.version >> composer install | ||
unit_tests: | ||
parameters: *version | ||
description: Run unit tests for << parameters.version >> | ||
steps: | ||
- run: docker-compose run << parameters.version >> ./vendor/bin/phpunit test/unit | ||
performance_tests: | ||
parameters: *version | ||
description: Run performance tests for << parameters.version >> | ||
steps: | ||
- run: docker-compose run << parameters.version >> ./vendor/bin/phpunit test/performance | ||
|
||
jobs: | ||
test: | ||
parameters: *version | ||
machine: | ||
image: ubuntu-2004:202010-01 | ||
steps: | ||
- checkout | ||
- install_composer_dependencies: | ||
version: << parameters.version >> | ||
- unit_tests: | ||
version: << parameters.version >> | ||
- performance_tests: | ||
version: << parameters.version >> | ||
|
||
workflows: | ||
build_and_test: | ||
jobs: | ||
- test: | ||
matrix: | ||
parameters: | ||
version: | ||
- php55 | ||
- php56 | ||
- php70 | ||
- php72 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
RESQUE_SERVER=redis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.cache | ||
.idea | ||
composer.phar | ||
composer.lock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,49 @@ | ||
mongo: | ||
image: rossfsinger/mongo-2.6.12:latest | ||
ports: | ||
- "27017:27017" | ||
version: "3.7" | ||
|
||
x-base-config: &base-config | ||
volumes: | ||
- ./:/var/tripod-php | ||
- ./vendor:/var/tripod-php/vendor:delegated | ||
links: | ||
- "mongo26:mongodb" | ||
- redis | ||
depends_on: | ||
- mongo26 | ||
- redis | ||
working_dir: /var/tripod-php | ||
env_file: .env | ||
|
||
services: | ||
php55: | ||
# build: | ||
# context: ./docker | ||
# dockerfile: Dockerfile-php55 | ||
image: talis/tripod-php:php55-latest | ||
<<: *base-config | ||
|
||
php56: | ||
# build: | ||
# context: ./docker | ||
# dockerfile: Dockerfile-php56 | ||
image: talis/tripod-php:php56-latest | ||
<<: *base-config | ||
|
||
php70: | ||
# build: | ||
# context: ./docker | ||
# dockerfile: Dockerfile-php70 | ||
image: talis/tripod-php:php70-latest | ||
<<: *base-config | ||
|
||
php72: | ||
# build: | ||
# context: ./docker | ||
# dockerfile: Dockerfile-php72 | ||
image: talis/tripod-php:php72-latest | ||
<<: *base-config | ||
|
||
mongo26: | ||
image: rossfsinger/mongo-2.6.12:latest | ||
|
||
redis: | ||
image: redis:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM php:5.5-cli | ||
|
||
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ | ||
|
||
RUN apt-get update && apt-get install -y git ca-certificates && \ | ||
chmod +x /usr/local/bin/install-php-extensions && \ | ||
install-php-extensions pcntl redis mongodb-1.1.9 && \ | ||
curl https://getcomposer.org/installer > /tmp/composer-setup.php && \ | ||
php /tmp/composer-setup.php --install-dir /usr/local/bin/ --filename composer \ | ||
&& rm /tmp/composer-setup.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM php:5.6-cli | ||
|
||
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ | ||
|
||
RUN chmod +x /usr/local/bin/install-php-extensions && \ | ||
install-php-extensions pcntl redis mongodb-1.1.9 && \ | ||
curl https://getcomposer.org/installer > /tmp/composer-setup.php && \ | ||
php /tmp/composer-setup.php --install-dir /usr/local/bin/ --filename composer \ | ||
&& rm /tmp/composer-setup.php && \ | ||
apt-get update && apt-get install -y git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM php:7.0-cli | ||
|
||
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ | ||
|
||
RUN chmod +x /usr/local/bin/install-php-extensions && \ | ||
install-php-extensions pcntl redis mongodb-1.1.9 && \ | ||
curl https://getcomposer.org/installer > /tmp/composer-setup.php && \ | ||
php /tmp/composer-setup.php --install-dir /usr/local/bin/ --filename composer \ | ||
&& rm /tmp/composer-setup.php && \ | ||
apt-get update && apt-get install -y git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM php:7.2-cli | ||
|
||
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ | ||
|
||
RUN chmod +x /usr/local/bin/install-php-extensions && \ | ||
install-php-extensions pcntl redis mongodb-1.4.4 && \ | ||
curl https://getcomposer.org/installer > /tmp/composer-setup.php && \ | ||
php /tmp/composer-setup.php --install-dir /usr/local/bin/ --filename composer \ | ||
&& rm /tmp/composer-setup.php && \ | ||
apt-get update && apt-get install -y git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters