Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

In this example we saved the soajs CD script as soa.cd.js and we created the following travis file

language: node_js

node_js: 10

jobs:
  include:

  - stage: install, check code style and coverage
    if: tag IS blank
    services:
    - mongodb
    addons:
      hosts:
      - localhost
    before_script:
    - npm install -g grunt-cli
    - sleep 10
    script:
    - grunt

  - stage: Continuous Delivery
    if: branch =~ /(master)/
    script:
    - export SOAJS_repo_branch=$TRAVIS_BRANCH
    - export SOAJS_repo_commit=$TRAVIS_COMMIT
    - echo "CD with SOAJS"
    - node soa.cd.js
  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.