Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@alrra/travis-scripts

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alrra/travis-scripts

Scripts that can help automate certain things using Travis CI

  • 1.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
86
decreased by-2.27%
Maintainers
1
Weekly downloads
 
Created
Source

travis-scripts

Build Status devDependency Status

How to use

  1. Save travis-scripts as a devDependency to package.json:

    $ npm install travis-scripts --save-dev
    
  2. Generate a GitHub application token for command-line use. See GitHub’s documentation for more info.

  3. Install the Travis client and run:

    $ travis encrypt -r "<username>/<repository>" \
      GH_TOKEN="<your_github_access_token>" \
      GH_USER_EMAIL="<your_email>" \
      GH_USER_NAME="<your_name>" \
      --add env.global
    

    This adds an entry to your .travis.yml file:

    env:
      global:
        - secure: "<secure_key>"
    
  4. Specify the commands to be run in .travis.yml.

    Here’s an example that runs npm install && npm run build against the master branch whenever Travis CI completes a run, after which the resulting build directory gets deployed to the gh-pages branch:

    after_success:
      - $(npm bin)/update-branch --commands "npm install && npm run build"
                                 --commit-message "Hey GitHub, this content is for you! [skip ci]"
                                 --directory "build"
                                 --distribution-branch "gh-pages"
                                 --source-branch "master"
    

Note that these scripts use travis-after-all to ensure this is only executed once, even when there are multiple jobs in the build matrix.

Keywords

FAQs

Package last updated on 19 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc