Add ci config
This commit is contained in:
parent
78a0569fb5
commit
f15cc2f8bc
4 changed files with 61 additions and 5 deletions
34
.circleci/config.yml
Normal file
34
.circleci/config.yml
Normal 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
4
js/package-lock.json
generated
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "uonet-request-signer-node",
|
"name": "@wulkanowy/uonet-request-signer",
|
||||||
"version": "0.1.0",
|
"version": "0.1.3",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/wulkanowy/uonet-request-signer/issues"
|
"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": {
|
"dependencies": {
|
||||||
"node-forge": "^0.7.6",
|
"node-forge": "^0.7.6",
|
||||||
"node-webcrypto-ossl": "^1.0.38"
|
"node-webcrypto-ossl": "^1.0.38"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'java'
|
id 'java'
|
||||||
id 'org.jetbrains.kotlin.jvm' version '1.2.71'
|
id 'org.jetbrains.kotlin.jvm' version '1.2.71'
|
||||||
|
id 'jacoco'
|
||||||
}
|
}
|
||||||
|
|
||||||
group 'io.github.wulkanowy'
|
group 'io.github.wulkanowy'
|
||||||
|
@ -13,8 +14,8 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
||||||
testCompile group: 'junit', name: 'junit', version: '4.12'
|
testImplementation "junit:junit:4.12"
|
||||||
}
|
}
|
||||||
|
|
||||||
compileKotlin {
|
compileKotlin {
|
||||||
|
@ -23,3 +24,24 @@ compileKotlin {
|
||||||
compileTestKotlin {
|
compileTestKotlin {
|
||||||
kotlinOptions.jvmTarget = "1.8"
|
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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue