Skip to content

Commit 037affb

Browse files
Feature create structure (#1)
* Create a project structure
1 parent a6cd046 commit 037affb

10 files changed

+86
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
bin/
2+
vendor/
3+
composer.phar
4+
/composer.lock

.travis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: php
2+
php:
3+
- '7.1'
4+
- nightly
5+
install:
6+
- composer install

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Change Log

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
# alpine
22
Track their professional progress
3+
4+
[![PDS Skeleton](https://img.shields.io/badge/pds-skeleton-blue.svg?style=flat)](https://github.com/php-pds/skeleton)
5+
[![Build Status](https://travis-ci.org/alpine-stack/alpine.svg?branch=master)](https://travis-ci.org/alpine-stack/alpine)
6+
[![Code Climate](https://codeclimate.com/github/alpine-stack/alpine/badges/gpa.svg)](https://codeclimate.com/github/alpine-stack/alpine)

composer.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "alpine-stack/alpine",
3+
"description": "Track their professional progress",
4+
"minimum-stability": "stable",
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "Andrzej Kostrzewa",
9+
"email": "[email protected]"
10+
}
11+
],
12+
"require": {
13+
"php": "~7.1",
14+
"alpine-stack/common": "dev-master",
15+
"doctrine/orm": "~2.5",
16+
"roave/security-advisories": "dev-master"
17+
},
18+
"require-dev": {
19+
"phpspec/phpspec": "~3.0",
20+
"phpunit/phpunit": "~6.0"
21+
},
22+
"repositories": [
23+
{
24+
"type": "vcs",
25+
"url": "[email protected]:alpine-stack/common.git",
26+
"no-api": true
27+
}
28+
],
29+
"autoload": {
30+
"psr-4": {
31+
"Alpine\\": "src/Alpine/"
32+
}
33+
},
34+
"autoload-dev": {
35+
"psr-4": {
36+
"Alpine\\Tests\\": "tests/Alpine/"
37+
}
38+
},
39+
"config": {
40+
"bin-dir": "bin"
41+
}
42+
}

phpspec.yml.dist

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
suites:
2+
alpine:
3+
spec_path: ./tests/Alpine
4+
spec_prefix: Spec
5+
namespace: Alpine
6+
src_path: ./src

phpunit.bootstrap.php

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
require_once __DIR__.'/vendor/autoload.php';
4+
5+
define('ALPINE_SRC_PATH', __DIR__ . '/src');
6+
7+
if (!getenv('COMMON_TEST_DB_CONNECTION')) {
8+
define('COMMON_TEST_DB_CONNECTION', json_encode(['driver' => 'pdo_sqlite', 'url' => 'sqlite:///:memory:', 'dbname' => 'alpine']));
9+
} else {
10+
define('COMMON_TEST_DB_CONNECTION', getenv('COMMON_TEST_DB_CONNECTION'));
11+
}

phpunit.xml.dist

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit
3+
backupGlobals="false"
4+
colors="true"
5+
bootstrap="./phpunit.bootstrap.php"
6+
>
7+
<testsuites>
8+
<testsuite name="alpine">
9+
<directory suffix="Test.php">tests/Alpine</directory>
10+
</testsuite>
11+
</testsuites>
12+
</phpunit>

src/Alpine/.gitkeep

Whitespace-only changes.

tests/Alpine/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)