https://github.com/52north/travis-tools

https://github.com/52north/travis-tools

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.6%) to scientific vocabulary

Keywords

build maven travis-ci
Last synced: 6 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: 52North
  • Language: Shell
  • Default Branch: master
  • Size: 20.5 KB
Statistics
  • Stars: 1
  • Watchers: 8
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Archived
Topics
build maven travis-ci
Created over 8 years ago · Last pushed over 6 years ago
Metadata Files
Readme

README.md

52°North Travis CI Tools

deploy-maven-snapshot.sh

Will run mvn deploy -DskipTests=true to deploy the current branch to the Sonatype Snapshot repository.

The server in the deployment configuration of your pom.xml has to have the id sonatype-nexus-snapshots (the default for projects depending on maven-parents).

Configuration

| Environment variable | Description | |----------------------|-------------------------------------------------------------------------| | SNAPSHOT_BRANCH | The branch to deploy, all other branches and pull requests are ignored. | | CI_DEPLOY_USERNAME | The user name to use for Sonatype. | | CI_DEPLOY_PASSWORD | The password to use for Sonytype. |

Example

Add the credentials to your .travis.yml:

sh travis encrypt -a "CI_DEPLOY_USERNAME=${SONATYPE_USERNAME}" travis encrypt -a "CI_DEPLOY_PASSWORD=${SONATYPE_PASSWORD}"

Add the following to your .travis.yml:

yaml after_success: - curl -Ls https://git.io/deploy-maven-snapshot | bash env: global: - SNAPSHOT_BRANCH=master

trigger-build.sh

This script will trigger the last build of branch (per default master) of another repository to be rebuild. The syntax is: sh trigger-build.sh repository [branch] Builds are only triggered for a configured branch, all other branches and pull requests are ignored. Dependent builds are not transitive, a dependent build won't trigger it's dependencies.

The script will add the following environment variables to the dependent build:

| Environment variable | Description | |----------------------|-----------------------------------------------------------| | DEPENDENT_BUILD | Always true. | | TRIGGER_REPO | The repo slug of the repository that triggered the build. | | TRIGGER_COMMIT | The commit that triggered the build |

Configuration

| Environment variable | Description | |----------------------|-----------------------------------------------------| | SNAPSHOT_BRANCH | The branch for which dependent build are triggered. | | TRAVIS_AUTH_TOKEN | The authorization token for Travis CI. |

Example

Add the Travis CI token to your .travis.yml:

sh travis encrypt -a "TRAVIS_AUTH_TOKEN=${TRAVIS_TOKEN}"

To generate a token: sh travis login --auto travis token

Define the branch for which the builds should be triggered: yaml env: global: - SNAPSHOT_BRANCH=master

Configure your dependent builds:

yaml after_success: - SCRIPT=$(mktemp) - curl -Ls https://git.io/trigger-build -o "$SCRIPT" - bash "${SCRIPT}" 52North/faroe - bash "${SCRIPT}" 52North/iceland - bash "${SCRIPT}" 52North/svalbard - bash "${SCRIPT}" 52North/shetland - bash "${SCRIPT}" 52North/sos feature/5.x - bash "${SCRIPT}" 52North/javaPS

For a single dependent build, this may be more concise: yaml after_success: - curl -Ls https://git.io/trigger-build | bash -s -- 52North/faroe

Owner

  • Name: 52°North Spatial Information Research GmbH
  • Login: 52North
  • Kind: organization
  • Email: info@52north.org
  • Location: Münster

Advancing spatial information infrastructures to foster open science

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels