Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Commit

Permalink
add travis template (#2)
Browse files Browse the repository at this point in the history
* add travis template
  • Loading branch information
tamarailenacosta authored Sep 2, 2022
1 parent db982ef commit 1f6a32e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: java

services: docker
jobs:
include:
- stage: Debricked-scan
on:
branch: "*"
env:
- DEBRICKED_TOKEN=${DEBRICKED_TOKEN}

before_install:
- env > file.env
- ./gradlew dependencies > .debricked-gradle-dependencies.txt

#https://docs.travis-ci.com/user/languages/java/#projects-using-gradle
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/

install: skip

script: docker run -v $(pwd):$(pwd) --env-file ./file.env --entrypoint "/travis-ci.sh" debricked/debricked-scan
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,7 @@ Different CI/CD tools offer different support for this. Below you can find docs
## Argo Workflows
- Add Debricked token variable. [Read more](https://debricked.com/docs/integrations/ci-build-systems/argo-workflows.html)
- [See template](argo.yml)

## Travis CI
- Add Debricked token variable. [Read more](https://debricked.com/docs/integrations/ci-build-systems/travis.html)
- [See template](.travis.yml)

0 comments on commit 1f6a32e

Please sign in to comment.