Skip to content

Commit

Permalink
publish php apidocs 1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Park committed Oct 24, 2017
2 parents 6fa5231 + 89abd57 commit 5fd814b
Show file tree
Hide file tree
Showing 154 changed files with 29,133 additions and 12 deletions.
28 changes: 28 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
node {
def SOURCEDIR = pwd()
try {
stage("Clean up") {
step([$class: 'WsCleanup'])
}
stage("Checkout Code") {
checkout scm
}
stage("Test with Docker") {
withEnv(["API_KEY=${env.ROSETTE_API_KEY}", "ALT_URL=${env.BINDING_TEST_URL}"]) {
sh "docker run --rm -e API_KEY=${API_KEY} -e ALT_URL=${ALT_URL} -v ${SOURCEDIR}:/source rosetteapi/docker-php"
}
}
slack(true)
} catch (e) {
currentBuild.result = "FAILED"
slack(false)
throw e
}
}

def slack(boolean success) {
def color = success ? "#00FF00" : "#FF0000"
def status = success ? "SUCCESSFUL" : "FAILED"
def message = status + ": Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
slackSend(color: color, channel: "#rapid", message: message)
}
35 changes: 35 additions & 0 deletions Jenkinsfile.examples
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
node {
def SOURCEDIR = pwd()
def TEST_CONTAINER = 'examples/php-test'
def DOCKERFILE_DIR = './examples/docker'
try {
stage("Clean up") {
step([$class: 'WsCleanup'])
}
stage("Checkout Code") {
checkout scm
}
stage("Build Dockerfile") {
dir ("${DOCKERFILE_DIR}") {
docker.build("${TEST_CONTAINER}")
}
}
stage("Run Examples") {
withEnv(["API_KEY=${env.ROSETTE_API_KEY}", "ALT_URL=${env.BINDING_TEST_URL}"]) {
sh "docker run --rm -e API_KEY=${API_KEY} -e ALT_URL=${ALT_URL} -v ${SOURCEDIR}:/source ${TEST_CONTAINER}"
}
}
slack(true)
} catch (e) {
currentBuild.result = "FAILED"
slack(false)
throw e
}
}

def slack(boolean success) {
def color = success ? "#00FF00" : "#FF0000"
def status = success ? "SUCCESSFUL" : "FAILED"
def message = status + ": Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
slackSend(color: color, channel: "#rapid", message: message)
}
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
See the wiki for more information.

## Installation ##
`composer require "rosette/api: ~1.4"`
`composer require "rosette/api: ~1.8"`

If the version you are using is not [the latest from Packagist](https://packagist.org/packages/rosette/api),
please check for its [**compatibilty with api.rosette.com**](https://developer.rosette.com/features-and-functions?php).
If you have an on-premise version of Rosette API server, please contact support for
binding compatibility with your installation.

=======
## Docker ##
Expand All @@ -20,5 +25,8 @@ See [examples](examples)
## API Documentation ##
See [documentation](http://rosette-api.github.io/php)

## Release Notes
See the [wiki](https://github.com/rosette-api/php/wiki/Release-Notes)

## Additional Information ##
Visit [Rosette API site](https://developer.rosette.com)
131 changes: 131 additions & 0 deletions classes.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5fd814b

Please sign in to comment.