From 12da84f5e298d805e8cb3e9791b9319e9755c5dd Mon Sep 17 00:00:00 2001 From: Tiger Kaovilai Date: Wed, 18 Oct 2023 11:29:05 -0400 Subject: [PATCH] master: remove travis (#267) --- .travis.yml | 65 ----------------------------------------------------- 1 file changed, 65 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index bad1bd8..0000000 --- a/.travis.yml +++ /dev/null @@ -1,65 +0,0 @@ -os: linux -services: docker -dist: focal -language: go -go: stable - -env: - global: - - IMAGE: quay.io/konveyor/volume-snapshot-mover - - DEFAULT_BRANCH: master - - DOCKERFILE: Dockerfile - - DOCKER_CLI_EXPERIMENTAL: enabled - - GOPROXY: https://proxy.golang.org,https://goproxy.io,direct - -before_install: -- | - if [ "${TRAVIS_BRANCH}" == "${DEFAULT_BRANCH}" ]; then - export TAG=latest - else - export TAG="${TRAVIS_BRANCH}" - fi - -# Builds routinely fail due to download failures inside alternate arch docker containers -# Here we are downloading outside the docker container and copying the deps in -# Also use -v for downloads/builds to stop no output failures from lxd env buffering. -before_script: -- go mod vendor -v -- sed -i 's|^RUN go mod download$|COPY vendor/ vendor/|g' ${DOCKERFILE} -- sed -i 's|-mod=mod|-mod=vendor|g' ${DOCKERFILE} -- sed -i 's|go build|go build -v|g' ${DOCKERFILE} - -script: -- docker build -t ${IMAGE}:${TAG}-${TRAVIS_ARCH} -f ${DOCKERFILE} . -- if [ -n "${QUAY_ROBOT}" ]; then docker login quay.io -u "${QUAY_ROBOT}" -p ${QUAY_TOKEN}; fi -- if [ -n "${QUAY_ROBOT}" ]; then docker push ${IMAGE}:${TAG}-${TRAVIS_ARCH}; fi - -jobs: - include: - - stage: execute unit tests - script: - - | - go test -v ./... - - stage: build images - arch: ppc64le - - arch: s390x - - arch: arm64-graviton2 - virt: lxd - group: edge - - arch: amd64 - - stage: push manifest - language: shell - arch: amd64 - before_script: [] - script: - - | - if [ -n "${QUAY_ROBOT}" ]; then - docker login quay.io -u "${QUAY_ROBOT}" -p ${QUAY_TOKEN} - docker manifest create \ - ${IMAGE}:${TAG} \ - ${IMAGE}:${TAG}-amd64 \ - ${IMAGE}:${TAG}-ppc64le \ - ${IMAGE}:${TAG}-s390x \ - ${IMAGE}:${TAG}-aarch64 - docker manifest push ${IMAGE}:${TAG} - fi