Skip to content

Commit

Permalink
SD build updates (AthenZ#1273)
Browse files Browse the repository at this point in the history
* SD build updates

* move travis to archive

* add secrets to publish job

* remove travis logback xml files

Co-authored-by: Henry Avetisyan <[email protected]>
  • Loading branch information
havetisyan and Henry Avetisyan authored Feb 2, 2021
1 parent 444de75 commit a8062d1
Show file tree
Hide file tree
Showing 49 changed files with 35 additions and 205 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion clients/go/zms/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export GOPATH=$(PWD)
# we're not going to generate our code during our automated builds since
# builds must be done based on files already checked-in into git

CICD := $(or ${TRAVIS_PULL_REQUEST},${TRAVIS_TAG})
CICD := $(or ${SCREWDRIVER},${TRAVIS_PULL_REQUEST},${TRAVIS_TAG})

ifdef CICD

Expand Down
2 changes: 1 addition & 1 deletion clients/go/zts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export GOPATH=$(PWD)
# we're not going to generate our code during our automated builds since
# builds must be done based on files already checked-in into git

CICD := $(or ${TRAVIS_PULL_REQUEST},${TRAVIS_TAG})
CICD := $(or ${SCREWDRIVER},${TRAVIS_PULL_REQUEST},${TRAVIS_TAG})

ifdef CICD

Expand Down
2 changes: 1 addition & 1 deletion clients/java/zms/scripts/make_stubs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# however, we're not going to run this utility during our automated builds since
# builds must be done based on files already checked-in into git

if [ ! -z "${TRAVIS_PULL_REQUEST}" ] || [ ! -z "${TRAVIS_TAG}" ]; then
if [ ! -z "${SCREWDRIVER}" ] || [ ! -z "${TRAVIS_PULL_REQUEST}" ] || [ ! -z "${TRAVIS_TAG}" ]; then
echo >&2 "------------------------------------------------------------------------";
echo >&2 "SOURCE NOTICE";
echo >&2 "------------------------------------------------------------------------";
Expand Down
15 changes: 0 additions & 15 deletions clients/java/zms/src/test/resources/travis_logback.xml

This file was deleted.

15 changes: 0 additions & 15 deletions clients/java/zpe/src/test/resources/travis_logback.xml

This file was deleted.

2 changes: 1 addition & 1 deletion clients/java/zts/core/scripts/make_stubs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# however, we're not going to run this utility during our automated builds since
# builds must be done based on files already checked-in into git

if [ ! -z "${TRAVIS_PULL_REQUEST}" ] || [ ! -z "${TRAVIS_TAG}" ]; then
if [ ! -z "${SCREWDRIVER}" ] || [ ! -z "${TRAVIS_PULL_REQUEST}" ] || [ ! -z "${TRAVIS_TAG}" ]; then
echo >&2 "------------------------------------------------------------------------";
echo >&2 "SOURCE NOTICE";
echo >&2 "------------------------------------------------------------------------";
Expand Down
15 changes: 0 additions & 15 deletions clients/java/zts/core/src/test/resources/travis_logback.xml

This file was deleted.

15 changes: 0 additions & 15 deletions containers/jetty/src/test/resources/travis_logback.xml

This file was deleted.

2 changes: 1 addition & 1 deletion core/zms/scripts/make_stubs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# however, we're not going to run this utility during our automated builds since
# builds must be done based on files already checked-in into git

if [ ! -z "${TRAVIS_PULL_REQUEST}" ] || [ ! -z "${TRAVIS_TAG}" ]; then
if [ ! -z "${SCREWDRIVER}" ] || [ ! -z "${TRAVIS_PULL_REQUEST}" ] || [ ! -z "${TRAVIS_TAG}" ]; then
echo >&2 "------------------------------------------------------------------------";
echo >&2 "SOURCE NOTICE";
echo >&2 "------------------------------------------------------------------------";
Expand Down
4 changes: 2 additions & 2 deletions core/zts/scripts/make_stubs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# however, we're not going to run this utility during our automated builds since
# builds must be done based on files already checked-in into git

if [ ! -z "${TRAVIS_PULL_REQUEST}" ] || [ ! -z "${TRAVIS_TAG}" ]; then
if [ ! -z "${SCREWDRIVER}" ] || [ ! -z "${TRAVIS_PULL_REQUEST}" ] || [ ! -z "${TRAVIS_TAG}" ]; then
echo >&2 "------------------------------------------------------------------------";
echo >&2 "SOURCE NOTICE";
echo >&2 "------------------------------------------------------------------------";
Expand Down Expand Up @@ -36,4 +36,4 @@ echo "Generating model classes..."
rdl -s generate -o src/main/java athenz-java-model $RDL_ZTS_FILE

# Copyright 2016 Yahoo Inc.
# Licensed under the terms of the Apache version 2.0 license. See LICENSE file for terms.
# Licensed under the terms of the Apache version 2.0 license. See LICENSE file for terms.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# however, we're not going to run this utility during our automated builds since
# builds must be done based on files already checked-in into git

if [ ! -z "${TRAVIS_PULL_REQUEST}" ] || [ ! -z "${TRAVIS_TAG}" ]; then
if [ ! -z "${SCREWDRIVER}" ] || [ ! -z "${TRAVIS_PULL_REQUEST}" ] || [ ! -z "${TRAVIS_TAG}" ]; then
echo >&2 "------------------------------------------------------------------------";
echo >&2 "SOURCE NOTICE";
echo >&2 "------------------------------------------------------------------------";
Expand Down
15 changes: 0 additions & 15 deletions libs/java/auth_core/src/test/resources/travis_logback.xml

This file was deleted.

15 changes: 0 additions & 15 deletions libs/java/client_common/src/test/resources/travis_logback.xml

This file was deleted.

15 changes: 0 additions & 15 deletions libs/java/instance_provider/src/test/resources/travis_logback.xml

This file was deleted.

15 changes: 0 additions & 15 deletions libs/java/server_common/src/test/resources/travis_logback.xml

This file was deleted.

2 changes: 1 addition & 1 deletion rdl/rdl-gen-athenz-go-client/make_generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# generated. Otherwise, the client has all the auto-generated code already
# checked-in into git.

if [ ! -z "${TRAVIS_PULL_REQUEST}" ] || [ ! -z "${TRAVIS_TAG}" ]; then
if [ ! -z "${SCREWDRIVER}" ] || [ ! -z "${TRAVIS_PULL_REQUEST}" ] || [ ! -z "${TRAVIS_TAG}" ]; then
echo >&2 "------------------------------------------------------------------------";
echo >&2 "SOURCE NOTICE";
echo >&2 "------------------------------------------------------------------------";
Expand Down
2 changes: 1 addition & 1 deletion rdl/rdl-gen-athenz-go-model/make_generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# generated. Otherwise, the client has all the auto-generated code already
# checked-in into git.

if [ ! -z "${TRAVIS_PULL_REQUEST}" ] || [ ! -z "${TRAVIS_TAG}" ]; then
if [ ! -z "${SCREWDRIVER}" ] || [ ! -z "${TRAVIS_PULL_REQUEST}" ] || [ ! -z "${TRAVIS_TAG}" ]; then
echo >&2 "------------------------------------------------------------------------";
echo >&2 "SOURCE NOTICE";
echo >&2 "------------------------------------------------------------------------";
Expand Down
2 changes: 1 addition & 1 deletion rdl/rdl-gen-athenz-java-model/make_generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# generated. Otherwise, the client has all the auto-generated code already
# checked-in into git.

if [ ! -z "${TRAVIS_PULL_REQUEST}" ] || [ ! -z "${TRAVIS_TAG}" ]; then
if [ ! -z "${SCREWDRIVER}" ] || [ ! -z "${TRAVIS_PULL_REQUEST}" ] || [ ! -z "${TRAVIS_TAG}" ]; then
echo >&2 "------------------------------------------------------------------------";
echo >&2 "SOURCE NOTICE";
echo >&2 "------------------------------------------------------------------------";
Expand Down
2 changes: 1 addition & 1 deletion rdl/rdl-gen-athenz-server/make_generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# generated. Otherwise, the server has all the auto-generated code already
# checked-in into git.

if [ ! -z "${TRAVIS_PULL_REQUEST}" ] || [ ! -z "${TRAVIS_TAG}" ]; then
if [ ! -z "${SCREWDRIVER}" ] || [ ! -z "${TRAVIS_PULL_REQUEST}" ] || [ ! -z "${TRAVIS_TAG}" ]; then
echo >&2 "------------------------------------------------------------------------";
echo >&2 "SOURCE NOTICE";
echo >&2 "------------------------------------------------------------------------";
Expand Down
42 changes: 18 additions & 24 deletions screwdriver.yaml
Original file line number Diff line number Diff line change
@@ -1,41 +1,35 @@
# Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
---
cache:
job:
main: [/main_job_cache]

shared:
image: openjdk:8
annotations:
screwdriver.cd/cpu: 8
screwdriver.cd/ram: 16
screwdriver.cd/disk: HIGH
screwdriver.cd/timeout: 120
environment:
USER_SHELL_BIN: /bin/bash

jobs:
pull-request:
requires: [~pr]
image: openjdk:8
annotations:
screwdriver.cd/cpu: 8
screwdriver.cd/ram: 16
screwdriver.cd/disk: HIGH
screwdriver.cd/timeout: 120

steps:
- install_dependencies: "screwdriver/scripts/install_deps.sh"
- build: "screwdriver/scripts/build.sh"


main:
requires: [~commit]
image: openjdk:8
annotations:
screwdriver.cd/cpu: 8
screwdriver.cd/ram: 16
screwdriver.cd/disk: HIGH
screwdriver.cd/timeout: 120

environment:
USER_SHELL_BIN: bash
LOCAL_MVN_REPO: "/tmp/athenz/mvnrepo"
ATHENZ_MAVEN_EXTRA_OPTS: "-Dmaven.repo.local=/tmp/athenz/mvnrepo -Dmaven.javadoc.skip=true -Dmaven.source.skip=true"
CCACHE_TMP_DIR: "/tmp/ccache_tmp"
CCACHE_DATA_DIR: "/tmp/athenz/ccache"
steps:
- install_dependencies: "screwdriver/scripts/install_deps.sh"
- build: "screwdriver/scripts/build.sh"

publish:
requires: [~tag]
steps:
- install_dependencies: "screwdriver/scripts/install_deps.sh"
- build: "screwdriver/scripts/build.sh"
- publish: "screwdriver/scripts/publish.sh"
secrets:
- BINTRAY_USER
- BINTRAY_API_KEY
3 changes: 2 additions & 1 deletion screwdriver/scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash

set -ev
set -e

export PATH=$PATH:/usr/local/go/bin
mvn install
2 changes: 1 addition & 1 deletion screwdriver/scripts/install_deps.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -ev
set -e

apt-get update
apt-get clean
Expand Down
2 changes: 1 addition & 1 deletion servers/zms/scripts/make_stubs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# however, we're not going to run this utility during our automated builds since
# builds must be done based on files already checked-in into git

if [ ! -z "${TRAVIS_PULL_REQUEST}" ] || [ ! -z "${TRAVIS_TAG}" ]; then
if [ ! -z "${SCREWDRIVER}" ] || [ ! -z "${TRAVIS_PULL_REQUEST}" ] || [ ! -z "${TRAVIS_TAG}" ]; then
echo >&2 "------------------------------------------------------------------------";
echo >&2 "SOURCE NOTICE";
echo >&2 "------------------------------------------------------------------------";
Expand Down
15 changes: 0 additions & 15 deletions servers/zms/src/test/resources/travis_logback.xml

This file was deleted.

2 changes: 1 addition & 1 deletion servers/zts/scripts/make_stubs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# however, we're not going to run this utility during our automated builds since
# builds must be done based on files already checked-in into git

if [ ! -z "${TRAVIS_PULL_REQUEST}" ] || [ ! -z "${TRAVIS_TAG}" ]; then
if [ ! -z "${SCREWDRIVER}" ] || [ ! -z "${TRAVIS_PULL_REQUEST}" ] || [ ! -z "${TRAVIS_TAG}" ]; then
echo >&2 "------------------------------------------------------------------------";
echo >&2 "SOURCE NOTICE";
echo >&2 "------------------------------------------------------------------------";
Expand Down
15 changes: 0 additions & 15 deletions servers/zts/src/test/resources/travis_logback.xml

This file was deleted.

15 changes: 0 additions & 15 deletions utils/zpe_policy_updater/src/test/resources/travis_logback.xml

This file was deleted.

0 comments on commit a8062d1

Please sign in to comment.