-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (52 loc) · 4.59 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
dist: bionic
language: nix
nix: 2.3.3
sudo: required
services:
- docker
cache:
directories:
- "$HOME/nix.store"
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
- "./.owasp-dependency-check-db"
before_install:
- export _JAVA_OPTIONS="-Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts"
- java -version
- sudo apt-get install ca-certificates-java
- stat /etc/ssl/certs/ca-certificates.crt
- stat /etc/ssl/certs/java/cacerts
- 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 "curl --head -v https://jcenter.bintray.com/org/reflections/reflections/0.9.10/reflections-0.9.10.jar"
- nix-shell --command "curl --head -v https://repo.jfrog.org/artifactory/libs-release-bintray/org/reflections/reflections/0.9.10/reflections-0.9.10.jar?referrer"
- nix-shell --command "./gradlew --version"
- nix-shell --command "./gradlew clean"
- nix-shell --command "./gradlew assemble"
- nix-shell --command "./gradlew check"
- nix-shell --command "./gradlew install"
- 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
after_success:
- bash <(curl -s https://codecov.io/bash)
- nix-shell --command "./.travis-publishOnRelease.sh"
deploy:
provider: script
script: nix-shell --command "bash docker_push"
on:
condition: "$TE_DEPLOY != ''"
all_branches: true
env:
global:
- # Environment variables for Docker
- secure: "JeCp69+B3veLfAv2WsYUN4iFfZmIb6McX2zWx5FJFzgQuNxsR+j4+lSCD75ATcnk25Qs9G53aS6Cu1f4WpL5Gd4W+8cpylCWq5e4mBB+7j3psgXnYIQ1l8tLpkVNRSZiEczMKo3lpjNzR+H6YtxtnAH6rBlEjnQpxRwXWKTQYhVWS5i+gttubuBpr6jqFNTBD6rpNOrpkxLR7zbQ4SX4inTY14D7G6Ik90rcLrdZCIbaS1olkMe2X+RMG0rboFxlKFShQwKc/cAGPMMzFEPFU4ysEwAPQjJYkurvn3s3GnzuG6NA4jsuQr4IHqhI+3+ZMcEldI4WVRnhBNO5d/a2+ab9g0wOtHjBP+5msiI02JpZiOxtNM8xZOKGa1zuBQcTexPmR/lNdpk9sQmczRD75PJPZIDi7OxcgUCtsVGVVH4WKuLfR06fVcMbAAB9ODP1EgSJuTZeMrRfeP1Pc+VMWuqU+J7AR46bJ4NfFg3i/OfEn8B+QRduqjqXvPEbmTAaMXhJiTmvvYwczR/eIgNPG8KaSu5eZCYs0NNrPKmMLEs6cjyeHBPEC5NiUyv/fhbq1Hv0ik6oXU8tyln+yaKMOO0mlWEG4rSGUaZ+babZprLAWV0sOgHz0rCcR/GGavC/pf3lhN4oVsv1uUMhoFtdf1ya3WF2KThnQux8uai5trg="
- secure: "VpFWJS9vsRfkA9mWUWLG6W7xQMB4A22jx0gYXH+UUaxrvvx6F5IBSgDqfdKfYTZD6uwivc8xNOlPBPuMHG+sOnQRvkVqZEWTMWVz8ZA83Csv2lW+weqguCyuzau5NXEAEAxBECBmwAe8TtfZ1C8VnyWnc2tBxBS+9fyWRncETkxTL6NuX1PeTYgfcP4DmOKC729ED7/7XGH7j4P4yx5hIAZZdJQehkF9cjO0aD9lUtZGJ0s8o5j44FcDCZG42lpbfJr42nFSPRnDhpP4RfMNaAmluU0/x3F2VlyBA/wiVEu3C18SG5gGKn9Srw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