Skip to content

Commit

Permalink
Merge pull request #26 from julienbourdeau/circleci-project-setup
Browse files Browse the repository at this point in the history
From Travis to CircleCi
  • Loading branch information
julienbourdeau authored Jul 17, 2021
2 parents 0ae6c26 + ea956e8 commit 82783b6
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 31 deletions.
49 changes: 49 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# PHP CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-php/ for more details
#
version: 2
jobs:
build:
docker:
# Specify the version you desire here
- image: circleci/php:7.1-node-browsers
- image: circleci/mysql:5.7

environment:
MYSQL_HOST: 127.0.0.1
MYSQL_ALLOW_EMPTY_PASSWORD: true
MYSQL_ROOT_PASSWORD: null
MYSQL_USER: root
MYSQL_DATABASE: test_route_usage

steps:
- checkout

- run:
name: Install libs
command: |
sudo apt update # PHP CircleCI 2.0 Configuration File# PHP CircleCI 2.0 Configuration File sudo apt install zlib1g-dev libsqlite3-dev
sudo docker-php-ext-configure pdo_mysql --with-pdo-mysql=mysqlnd
sudo docker-php-ext-install zip bcmath pdo_mysql
sudo apt-get install default-mysql-client
# Download and cache dependencies
- restore_cache:
keys:
# "composer.lock" can be used if it is committed to the repo
- v1-dependencies-{{ checksum "composer.json" }}
# fallback to using the latest cache if no exact match is found
# - v1-dependencies-

- run: composer install -n --prefer-dist

- save_cache:
key: v1-dependencies-{{ checksum "composer.json" }}
paths:
- ./vendor

- run: mysql -uroot -e 'CREATE DATABASE test_route_usage;'

# Run tests
- run: ./vendor/bin/phpunit
15 changes: 0 additions & 15 deletions .editorconfig

This file was deleted.

16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

0 comments on commit 82783b6

Please sign in to comment.