Skip to content

Commit

Permalink
Initialized repository main files
Browse files Browse the repository at this point in the history
  • Loading branch information
ekkinox committed Mar 3, 2020
1 parent da9335d commit 6478e27
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 7 deletions.
33 changes: 33 additions & 0 deletions .Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
pipeline {
agent {
label 'master'
}
stages {
stage('Tests') {
agent {
docker {
image 'alexwijn/docker-git-php-composer'
reuseNode true
}
}
environment {
HOME = '.'
}
options {
skipDefaultCheckout()
}
steps {
withCredentials([string(credentialsId: 'jenkins_github_token', variable: 'GIT_TOKEN')]) {
sh(
label: 'Install/Update sources from Composer',
script: "COMPOSER_AUTH='{\"github-oauth\": {\"github.com\": \"$GIT_TOKEN\"}}\' composer install --no-interaction --no-ansi --no-progress"
)
}
sh(
label: 'Run backend tests',
script: './vendor/bin/phpunit'
)
}
}
}
}
8 changes: 3 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
composer.phar
/vendor/

# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
# composer.lock
/.idea/
composer.phar
composer.lock
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CHANGELOG
=========

0.1.0
-----

* TBD
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -336,4 +336,4 @@ This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
Public License instead of this License.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
# lib-lti1p3-core
# LTI1P3Core library

> PHP library for LTI 1.3 management
## Table of contents
- [Installation](#installation)
- [Principles](#principles)
- [Usage](#usage)
- [Tests](#tests)

## Installation

```console
$ composer require oat-sa/lib-lti1p3-core
```

## Principles

TDB

## Usage

TBD
19 changes: 19 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "oat-sa/lib-lti1p3-core",
"description": "OAT LTI 1.3 Core Library",
"type": "library",
"license": "GPL-2.0-only",
"require": {
"php": "^7.1.3"
},
"autoload": {
"psr-4": {
"OAT\\Library\\LTI1P3Core\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"OAT\\Library\\LTI1P3Core\\Tests\\": "tests/"
}
}
}

0 comments on commit 6478e27

Please sign in to comment.