Travis CI Integration
Introduction
TravisCI
is a hosted continuous integration service used to build and test software projects hosted on GitHub and Bitbucket.
Using the installation script
You may automatically install the scanner using the installation script available from https://get.xygeni.io/latest/scanner/TYPE
, with TYPE either bash
or powershell
:
language: ruby
jobs:
include:
- stage: "Install Xygeni scanner"
script:
- >
curl -L https://get.xygeni.io/latest/scanner/install.sh |
/bin/bash -s -- -o -t $XYGENI_TOKEN
- stage: "Scan for issues"
script:
- >
$HOME/xygeni_scanner/xygeni scan
-n $PROJECT_NAME --dir $PROJECT_HOME
Using the docker image
If it is not possible to install the scanner in the BitBuket host running the pipeline, you may run the docker image instead:
language: ruby
jobs:
include:
- stage: "Scan for issues"
script:
- >
docker run
-v $PROJECT_HOME:/app
-v $DD_CONF:/opt/xygeni_scanner/conf
-t -rm
xygeni_scanner/xygeni scan
-n $PROJECT_NAME --dir /app
Last updated