All Projects β†’ semantic-release β†’ Condition Travis

semantic-release / Condition Travis

Licence: mit
🚫 semantic-release plugin to check Travis CI environment before publishing.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Condition Travis

Automatic Release
Automates the release process for GitHub projects.
Stars: ✭ 46 (+411.11%)
Mutual labels:  publish, release, travis
yaspeller-ci
Fast spelling check for Travis CI
Stars: ✭ 60 (+566.67%)
Mutual labels:  travis-ci, travis
exec
🐚 semantic-release plugin to execute custom shell commands
Stars: ✭ 94 (+944.44%)
Mutual labels:  release, publish
react-multi-context
Manage multiple React 16 contexts with a single component.
Stars: ✭ 19 (+111.11%)
Mutual labels:  travis-ci, travis
react-testing-mocha-chai-enzyme
A solid test setup for React components with Mocha, Chai, Sinon, Enzyme in a Webpack/Babel application.
Stars: ✭ 48 (+433.33%)
Mutual labels:  travis-ci, travis
prepublish
Simplifies the prepare step (bundling, transpiling, rebasing) during publishing NPM packages.
Stars: ✭ 21 (+133.33%)
Mutual labels:  release, publish
Github-Release-Action
Publish Github releases in an action
Stars: ✭ 100 (+1011.11%)
Mutual labels:  release, publish
wisdom
🎁 Tool for publishing releases to github and npm
Stars: ✭ 16 (+77.78%)
Mutual labels:  release, publish
react-innertext
Returns the innerText of a React JSX object.
Stars: ✭ 37 (+311.11%)
Mutual labels:  travis-ci, travis
Cli
πŸ†‘πŸ“ Setup automated semver compliant package publishing
Stars: ✭ 272 (+2922.22%)
Mutual labels:  publish, release
Release It
πŸš€ Automate versioning and package publishing
Stars: ✭ 4,773 (+52933.33%)
Mutual labels:  publish, release
sbt-travisci
An sbt plugin to integrate with Travis CI
Stars: ✭ 44 (+388.89%)
Mutual labels:  travis-ci, travis
plugin.video.sendtokodi
πŸ“Ί plays various stream sites on kodi using youtube-dl
Stars: ✭ 86 (+855.56%)
Mutual labels:  travis-ci, travis
badge-matrix
More advanced badges for projects using Travis or Sauce Labs
Stars: ✭ 77 (+755.56%)
Mutual labels:  travis-ci, travis
xyz
Publish npm packages with fewer screw-ups
Stars: ✭ 101 (+1022.22%)
Mutual labels:  release, publish
googletest-ci
Continuous integration (CI) + Google Test (gtest) + CMake example boilerplate demo
Stars: ✭ 14 (+55.56%)
Mutual labels:  travis-ci, travis
Use React Router
React Hook for pub-sub behavior using React Router.
Stars: ✭ 575 (+6288.89%)
Mutual labels:  travis-ci, travis
travis-deploy-once
🚫Test multiple node versions on Travis. Deploy once. If all of them pass.
Stars: ✭ 34 (+277.78%)
Mutual labels:  travis-ci, travis
fetch-action-creator
Fetches using standardized, four-part asynchronous actions for redux-thunk.
Stars: ✭ 28 (+211.11%)
Mutual labels:  travis-ci, travis
todo-list
TodoList using Ionic2/3 & Firebase: * PWA * SSO Google plus. * Share list via QRcode. * Upload image from Camera or Storage. * Speech Recognition.
Stars: ✭ 18 (+100%)
Mutual labels:  travis-ci, travis

@semantic-release/condition-travis

semantic-release plugin to check Travis CI environment before publishing.

Travis Codecov Greenkeeper badge

Verify that semantic-release is running:

  • on Travis CI
  • on the right git branch and not on a PR build
  • only after all other Travis jobs are successful (using travis-deploy-once)

Options

Option Description Default
githubToken Required. The Github token used to authenticate with Travis API. process.env.GH_TOKEN or process.env.GITHUB_TOKEN
githubUrl The GitHub Enterprise endpoint. process.env.GH_URL or process.env.GITHUB_URL
githubApiPathPrefix The GitHub Enterprise API prefix. process.env.GH_PREFIX or process.env.GITHUB_PREFIX
travisUrl The Travis Enterprise endpoint. process.env.TRAVIS_URL

Configuration

The plugin is used by default by semantic-release so no specific configuration is required if githubToken, githubUrl, githubApiPathPrefix and travisUrl are set via environment variable.

Travis configuration

semantic-release require Node node version >= 8, so at least one Travis job as to run on Node 8 (or greater).

With one job

No specific configuration is required. semantic-release will run on the only Travis job.

language: node_js
node_js:
  - 8

after_success:
  - npm run semantic-release

With multiple jobs on different Node versions and OS

If there are multiple Node versions and OSs configured, travis-deploy-once will guarantee that semantic-release is executed on the highest Node version, after all other jobs are successful, without any additional configurations.

language: node_js
node_js:
  - 8
  - 6
  - 4
os:
  - linux
  - osx

after_success:
  - npm run semantic-release

In this example Travis will run 6 jobs (Node 8/Linux, Node 8/ OSX, Node 6/Linux etc...) and semantic-release will be executed on Node 8 on Linux, only after the 5 other jobs are successful.

Using Travis Build stages

Travis support Build Stages for more complex workflows. It's possible to use semantic-release with Build Stages by configuring the environment variable BUILD_LEADER_ID to defined which job will run semantic-release.

The build stage configuration has to guarantee that the job configured with BUILD_LEADER_ID will run only after all other jobs are successful.

language: node_js
node_js:
  - 8
  - 6
  - 4
os:
  - linux
  - osx
env:
  - BUILD_LEADER_ID=7
jobs:
  include:
    - stage: release
      node_js: 8
      os: linux
      after_success: 
        - npm run semantic-release

In this example Travis will run 6 jobs in the default stage (Node 4, 6 and 8 on Linux and OSX) and if those 6 jobs are successful the release stage will run the 7th job (on Node 8 / Linux) that will execute semantic-release. The environment variable BUILD_LEADER_ID is set to 7 as semantic-release should run on the 7th job.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].