File 3651-otp-Remove-travis-support.patch of Package erlang
From e44b8aee0ce7c967ede55be1ffb4687039c88afa Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Fri, 14 May 2021 08:41:02 +0200
Subject: [PATCH] otp: Remove travis support
Travis stopped working a while ago and since we have now
migrated to github actions we can remove the travis support
completely.
Closes #4825
---
.travis.yml | 70 --------------------------------------
scripts/build-otp | 85 -----------------------------------------------
2 files changed, 155 deletions(-)
delete mode 100644 .travis.yml
delete mode 100755 scripts/build-otp
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 5cdef141c0..0000000000
--- a/.travis.yml
+++ /dev/null
@@ -1,70 +0,0 @@
-language: c
-
-sudo: false
-
-os:
- - linux
-
-dist: xenial
-
-addons:
- apt:
- packages:
- - autoconf
- - libncurses-dev
- - build-essential
- - libssl-dev
- - libwxgtk3.0-dev
- - libglu1-mesa-dev
- - default-jdk
- - g++
- - xsltproc
- - libxml2-utils
-
-matrix:
- include:
- # Doc build second as it also takes a long time to run
- - env: Linux64Docbuild
- script:
- - ./scripts/build-otp docs
- deploy:
- provider: pages
- repo: erlang/cd
- target-branch: master
- skip-cleanup: true
- keep-history: false
- verbose: true
- github-token: $ERLANG_CD_GITHUB_TOKEN
- on:
- # We only deploy on pushes to branches
- all_branches: true
- tags: false
- condition: $TRAVIS_PULL_REQUEST = "false"
- repo: erlang/otp
- - env: Linux-ppc64le-SmokeTest
- os: linux-ppc64le
- script:
- - ./scripts/build-otp
- - ./otp_build tests
- - ./scripts/run-smoke-tests
- addons:
- apt:
- update: true
- packages:
- - autoconf
- - libncurses-dev
- - build-essential
- - libssl-dev
- - libwxgtk3.0-dev
- - libglu1-mesa-dev
- - default-jdk
- - g++
- - xsltproc
- - libxml2-utils
-
-before_script:
- - set -e
- - export ERL_TOP=$PWD
- - export PATH=$ERL_TOP/bin:$PATH
- - export ERL_LIBS=''
- - export MAKEFLAGS=-j4
diff --git a/scripts/build-otp b/scripts/build-otp
deleted file mode 100755
index 938a6809bb..0000000000
--- a/scripts/build-otp
+++ /dev/null
@@ -1,85 +0,0 @@
-#!/bin/bash
-
-set -e
-
-function progress {
- local file=$1
- ls=$(ls -l $file)
- while [ true ]; do
- sleep 10
- new_ls=$(ls -l $file)
- if [ "$new_ls" != "$ls" ]; then
- echo -n "."
- fi
- ls="$new_ls"
- done
-}
-
-function do_and_log {
- start_time=`date +%s`
- log="logs/latest-log.$$"
- echo "" >$log
- echo -n "$1..."
- (progress $log) &
- pid=$!
- disown
- shift
- if $* >$log 2>&1; then
- kill $pid >/dev/null 2>&1
- stop_time=`date +%s`
- diff_time=$((stop_time-start_time))
- echo " done, took $diff_time seconds"
- else
- kill $pid >/dev/null 2>&1
- echo " failed."
- tail -n 200 $log
- echo "*** Failed ***"
- exit 1
- fi
-}
-
-if [ ! -d "logs" ]; then
- mkdir logs
-fi
-
-export ERLC_USE_SERVER=yes
-do_and_log "Autoconfing" ./otp_build autoconf
-do_and_log "Configuring" ./otp_build configure
-echo Configure result:
-tail -n 20 $log
-do_and_log "Building OTP" ./otp_build boot -a
-
-if [ "$1" = "release" ]; then
- do_and_log "Releasing OTP" ./otp_build release -a
-fi
-
-if [ "$1" = "docs" ]; then
- DOC_TARGET=${TRAVIS_BRANCH:-release/`erts/autoconf/config.guess`}
- DOC_TARGET=${TRAVIS_TAG:-$DOC_TARGET}
- TESTROOT=$PWD/$DOC_TARGET do_and_log "Building documentation" make release_docs
- do_and_log "Linting documentation" make xmllint
- do_and_log "Checking html links" scripts/otp_html_check $PWD/$DOC_TARGET doc/index.html
- do_and_log "Test chunks" erlc lib/stdlib/test/shell_docs_SUITE.erl &&
- ct_run -no_auto_compile -suite shell_docs_SUITE -case render_smoke
- # The code below prepares this build to be used as a deploy to
- # github pages for documentation.
- if [ "$TRAVIS_PULL_REQUEST" = "false" -a "$TRAVIS_TAG" = "" -a "$TRAVIS_REPO_SLUG" = "erlang/otp" ]; then
- set -x
- rm -rf logs
- SHA=`git rev-parse --verify HEAD`
- DATE=`git show -s --format=%ci`
- git clean -xfdq -e $DOC_TARGET
- git fetch https://github.com/erlang/cd master
- git checkout -f FETCH_HEAD
- rm -rf _docs/$DOC_TARGET
- mv $DOC_TARGET _docs/$DOC_TARGET
- echo "---" > _docs/$DOC_TARGET.md
- echo "title: $DOC_TARGET" >> _docs/$DOC_TARGET.md
- echo "sha: $SHA" >> _docs/$DOC_TARGET.md
- echo "generated: $DATE" >> _docs/$DOC_TARGET.md
- echo "---" >> _docs/$DOC_TARGET.md
- set +x
- fi
-fi
-
-exit 0
--
2.26.2