kaltura/KalturaGeneratedAPIClientsPHP:.travis.yml@200699a
language: php
php:
- "5.6"
- "7.0"
- "7.1"
- "7.2"
- "7.3"
script:
- sed -e "s#@YOUR_PARTNER_ID@#$PARTNER_ID#g" -e "s#@YOUR_ADMIN_SECRET@#$ADMIN_SECRET#g" -e "s#@SERVICE_URL@#https://www.kaltura.com#g" TestCode/config.template.ini > TestCode/config.ini
- cd TestCode/ && php TestMain.php
notifications:
email:
recipients:
- moshe.maor@kaltura.com
- jess.portnoy@kaltura.com
- Jonathan.Kanarek@kaltura.com
on_success: change
on_failure: always
Build Config
{
"go": [
"1.11.4"
],
"os": [
"linux"
],
"env": {
"global": [
"GO15VENDOREXPERIMENT='1'",
"TRAVIS_COMMIT_SHORT=\"$(echo $TRAVIS_COMMIT | cut -b1-7)\"",
"TRAVIS_COMMIT_LESSSHORT=\"$(echo $TRAVIS_COMMIT | cut -b1-9)\""
]
},
"dist": "xenial",
"group": "edge",
"matrix": {
"include": [
{
"name": "linux",
"stage": "test",
"addons": {
"artifacts": {
"paths": [
"./build/linux/amd64/gcloud-cleanup",
"./build/darwin/amd64/gcloud-cleanup",
"./build.tar.gz"
],
"enabled": true,
"target_paths": [
"travis-ci/gcloud-cleanup/$TRAVIS_BRANCH",
"travis-ci/gcloud-cleanup/$TRAVIS_COMMIT",
"travis-ci/gcloud-cleanup/$TRAVIS_COMMIT_SHORT",
"travis-ci/gcloud-cleanup/$TRAVIS_COMMIT_LESSSHORT"
]
}
},
"script": [
"make copyright",
"git diff --exit-code",
"git diff --cached --exit-code",
"make"
],
"after_success": [
"bash <(curl -s https://codecov.io/bash)",
"tar -czvf build.tar.gz build Procfile Makefile"
]
},
{
"if": "type != 'pull_request'",
"name": "docker",
"addons": {
"apt": {
"packages": [
"docker-ce"
]
}
},
"script": [
"export DOCKER_IMAGE_REPO=travisci/gcloud-cleanup",
"export VERSION_VALUE=$(git describe --always --dirty --tags 2>/dev/null)",
"export DOCKER_DEST=$DOCKER_IMAGE_REPO:$VERSION_VALUE",
"docker build -t $DOCKER_DEST .",
"docker run --rm -it $DOCKER_DEST gcloud-cleanup --help",
"script/docker-push $DOCKER_DEST"
]
}
]
},
"language": "go"
}