GithubHelp home page GithubHelp logo

travis's Introduction

Travis simplify scripts

End of life

Beginning from 2021 this project will be no more maintenance by us. If you want you can adopt it - please contact by email.


Those scripts simplify your travis configuration.

By default builds for tags are skipped, also commit with message contains [maven-release-plugin] prepare release are skipped

Supplied maven settings

  • has configuration for snapshot repository from OSSRH (https://oss.sonatype.org/content/repositories/snapshots)

  • has servers section:

      <servers>
          <server>
              <id>ossrh</id>
              <username>${env.CI_DEPLOY_USERNAME}</username>
              <password>${env.CI_DEPLOY_PASSWORD}</password>
          </server>
      </servers>
    

    So you can deliver your permissions by environment variables: CI_DEPLOY_USERNAME and CI_DEPLOY_PASSWORD

Examples

Example of .travis.yml for the latest version of those scripts:

    install:
        - mkdir -p ../utils
        - curl -Ls https://github.com/s4u/travis/archive/master.tar.gz \
          | tar -zx --strip-components 2 -C ../utils travis-master/src

    script:
        - ../utils/mvn-run.sh  clean verify  # execute always
        - ../utils/mvn-push.sh clean deploy  # execute only on push
        - ../utils/mvn-pr.sh   clean verify  # execute only on pull request
        - ../utils/mvn-tag.sh  clean verify  # execute on git tag
        - ../utils/mvn-sec-env.sh deploy     # execute if build is run in secure environment

for specific version, replace master on tag name:

    install:
        - mkdir -p ../utils
        - curl -Ls https://github.com/s4u/travis/archive/1.0.tar.gz \
          | tar -zx --strip-components 2 -C ../utils travis-1.0/src

Travis environment operation on many repository

Simple script to manipulate travis environment variable on many repository.

example:

    ./travis-env.sh <orgName>/* list
    ./travis-env.sh <orgName>/* set NAME VALUE [travis OPTIONS]
    ./travis-env.sh <orgName>/* unset NAMES.. [travis OPTIONS]

travis's People

Contributors

slawekjaranowski avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.