Add ci config

This commit is contained in:
Mikołaj Pich 2018-10-17 20:50:19 +02:00
parent 78a0569fb5
commit f15cc2f8bc
No known key found for this signature in database
GPG key ID: F62B26E36D4C4BAA
4 changed files with 61 additions and 5 deletions

34
.circleci/config.yml Normal file
View file

@ -0,0 +1,34 @@
version: 2
jobs:
php:
docker:
- image: circleci/php:7
steps:
- checkout
- run: cd php/
- run: composer install
- run: php ./tests/signer_test.php
js:
docker:
- image: circleci/node:8
steps:
- checkout
- run: cd js/
- run: npm install
- run: ./node_modules/.bin/mocha
jvm:
docker:
- image: circleci/openjdk:8
steps:
- checkout
- run: cd jvm/
- run: ./gradlew check
- store_test_results:
path: ./jvm/build/test-results
workflows:
version: 2
build_and_test:
jobs:
- build
- test

4
js/package-lock.json generated
View file

@ -1,6 +1,6 @@
{
"name": "uonet-request-signer-node",
"version": "0.1.0",
"name": "@wulkanowy/uonet-request-signer",
"version": "0.1.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View file

@ -21,7 +21,7 @@
"bugs": {
"url": "https://github.com/wulkanowy/uonet-request-signer/issues"
},
"homepage": "https://github.com/wulkanowy/uonet-request-signer/tree/master/node#readme",
"homepage": "https://github.com/wulkanowy/uonet-request-signer/tree/master/js#readme",
"dependencies": {
"node-forge": "^0.7.6",
"node-webcrypto-ossl": "^1.0.38"

View file

@ -1,6 +1,7 @@
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.2.71'
id 'jacoco'
}
group 'io.github.wulkanowy'
@ -13,8 +14,8 @@ repositories {
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testCompile group: 'junit', name: 'junit', version: '4.12'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testImplementation "junit:junit:4.12"
}
compileKotlin {
@ -23,3 +24,24 @@ compileKotlin {
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
jacocoTestReport {
reports {
xml.enabled true
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}