Skip to content
This repository has been archived by the owner on Feb 28, 2020. It is now read-only.

Commit

Permalink
devops insights reporting from travis, issue #720
Browse files Browse the repository at this point in the history
  • Loading branch information
nfstein committed Apr 10, 2019
1 parent 69b1007 commit 85c64f2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
node_modules
.idea
.nyc_output/
*.log
coverage/
devops-insights/
.DS_Store
*.log
18 changes: 15 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,23 @@ before_script:
- mv hub-linux-386-2.5.1 hub
- export PATH=${PATH}:/tmp/hub/bin
- git clone -b master https://github.com/ibm-developer/standard-npm-devops.git
- cd -
script: npm test && npm run coveralls && /tmp/standard-npm-devops/do_devops.sh
- cd $TRAVIS_BUILD_DIR
script:
- npm test && npm run coveralls && /tmp/standard-npm-devops/do_devops.sh
- if [ -z $TRAVIS_PULL_REQUEST_BRANCH ]; then /tmp/standard-npm-devops/do_devops_insights_reporting.sh; fi
branches:
only:
- master
- develop
- nick-branch
env:
- DEV_BRANCH=develop PROD_BRANCH=master DEVOPS_SCRIPT_DIR="/tmp/standard-npm-devops"
global:
- DEV_BRANCH=develop
- PROD_BRANCH=master
- DEVOPS_SCRIPT_DIR="/tmp/standard-npm-devops"
# below are idra's necessary environment variables to report to devops-insights
# IBM_CLOUD_API_KEY and TOOLCHAIN_ID need to be defined from travis GUI
- ORGANIZATION_NAME=devops-insights
- LOGICAL_APP_NAME=generator-ibm-usecase-enablement
- GIT_URL=https://github.com/ibm-developer/generator-ibm-usecase-enablement
- DEVOPS_REPORT_DIR=/tmp/devops_insights/

0 comments on commit 85c64f2

Please sign in to comment.