Travis CI
​

Prerequisites

Instructions for SCA scans

    The main source of configuration for your build is the travis.yml file stored in your repository. Create a file called .travis.yml in your repository
    Find the .yaml is for python and replace
      lang - java | python | node | php | go | rust | dotnet
      api-key - your api key
      project-name - your project name
Linux
1
language: python
2
python:
3
- "3.8"
4
# command to install dependencies
5
install:
6
- pip install -r requirements.txt
7
# command to run tests
8
script:
9
- curl https://raw.githubusercontent.com/CloudDefenseAI/cd/master/latest/cd-latest-linux-x64.tar.gz > /tmp/cd-latest-linux-x64.tar.gz && tar -C /tmp -xzf /tmp/cd-latest-linux-x64.tar.gz && chmod +x /tmp/cdefense
10
- /tmp/cdefense scan --lang=<lang> --project-name=<project-name> --api-key=<api-key> --path=requirements.txt
Copied!
Failed Build:
Last modified 1mo ago