-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (33 loc) · 2.36 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
language: nix
sudo: required
services:
- docker
cache:
directories:
- "$HOME/nix.store"
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
- "./.odcdb"
before_install:
- sudo mkdir -p /etc/nix
- echo "substituters = https://cache.nixos.org/ file://$HOME/nix.store" | sudo tee -a /etc/nix/nix.conf > /dev/null
- echo 'require-sigs = false' | sudo tee -a /etc/nix/nix.conf > /dev/null
before_cache:
- mkdir -p $HOME/nix.store
- nix copy --to file://$HOME/nix.store -f default.nix buildInputs
script:
- nix-shell --command "./gradlew check"
- nix-shell --command "timeout 300 ./.travis-cat_owasp_depcheck_reports.sh || true"
- nix-shell --command "./gradlew docker"
- if [[ ( "$TRAVIS_PULL_REQUEST" = "false" ) && (( "$TRAVIS_BRANCH" = "master" ) || ( "$TRAVIS_TAG" != "" )) ]]; then export TE_DEPLOY=true; fi
deploy:
provider: script
script: nix-shell --command "bash docker_push"
on:
condition: "$TE_DEPLOY != ''"
all_branches: true
env:
global:
- # Environment variables for Docker
- secure: "W0pZh0w+FdL8I6iWxcZuYbpowtHMjeMyTz5HwwrA2FyglPu3ybI7+0VQ88YTQa9Si0sghKl1hFz49dK+0y7ve9Pcwbfs90R/MlM7x/WYjR90dr4lfvWAGdheWGdhwfM60knVjrGbspJ7YBikfZRzOI8jWvhkjLsWoHR8arSdVp2O3kkpoaqvXL48rraeFrx/zCXqRIYw6dTpdVw+BJHbZZcvExTD/LdgEwVd6ctiRFKsBgfJ4ozgHTJL6xDK8CxwJFeaJZWyDjYE7+hJTPz2l9EATGnxGmnU26SItOzrk5/pKVy9reNL6khXwbvW91VVQj9aaDvMcZrW+sAPqpOF7LLtwy1kycBNV11WC3Xvy+n+KJl2Vy9EAEYDZ5E4QqZEUEPxAfU/d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