Changeset 15268


Ignore:
Timestamp:
04/28/20 06:37:47 (3 years ago)
Author:
Mark Evenson
Message:

ci: just output hashes for release

Installing the necessary TeXlive? chain to render the manual proves to
be a very time-wise expensive operation on Travis CI for a generic
container. For now, disable the creation of full release artifacts
just printing the hash and sizes for what exists.

Use and set the environment variable ABCL_ROOT to start to make the CI
instructions implementation independent.

Location:
trunk/abcl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/.travis.yml

    r15260 r15268  
    2020      - ant
    2121      - maven
     22      # Needed for rendering the User Manual
     23      # Unfortunately, installing TeX from scratch is judged too expensive computationally.
     24      # - texlive-full
    2225  homebrew:
    2326    update: true
     
    2528      - ant
    2629      - maven
     30      # Needed for rendering the User Manual
     31      # Unfortunately, installing TeX from scratch is judged too expensive computationally.
     32      # - mactex
    2733env:
    28   - ABCL_JDK=openjdk8
    29   - ABCL_JDK=openjdk11
    30   - ABCL_JDK=openjdk14
     34  - ABCL_JDK=openjdk8  ABCL_ROOT=${TRAVIS_BUILD_DIR}
     35  - ABCL_JDK=openjdk11 ABCL_ROOT=${TRAVIS_BUILD_DIR}
     36  - ABCL_JDK=openjdk14 ABCL_ROOT=${TRAVIS_BUILD_DIR}
    3137
    3238install:
    33   - echo $(pwd)
    34   - bash -x ${TRAVIS_BUILD_DIR}/ci/install-adoptjdk.bash ${ABCL_JDK}
     39  - echo PWD=$(pwd) && echo ABCL_ROOT=${ABCL_ROOT}
     40  - bash -x ${ABCL_ROOT}/ci/install-adoptjdk.bash ${ABCL_JDK}
     41
    3542  # Ensure we can invoke ant
    36   - . ${TRAVIS_BUILD_DIR}/ci/ensure-jenv-is-present.bash && ant abcl.diagnostic
     43  - . ${ABCL_ROOT}/ci/ensure-jenv-is-present.bash && ant abcl.diagnostic
     44
    3745  # Set build and runtime options for the JVM hosting ABCL
    3846  - bash -x ./ci/create-abcl-properties.bash ${ABCL_JDK}
     47
    3948  # Build ABCL
    40   - . ${TRAVIS_BUILD_DIR}/ci/ensure-jenv-is-present.bash && ant abcl
     49  - . ${ABCL_ROOT}/ci/ensure-jenv-is-present.bash && ant abcl
     50
    4151  # Configure finding abcl build source via ASDF
    42   - bash -x ${TRAVIS_BUILD_DIR}/ci/asdf-finds-abcl.bash
     52  - bash -x ${ABCL_ROOT}/ci/asdf-finds-abcl.bash
     53
    4354  # Install Quicklisp
    44   - ${TRAVIS_BUILD_DIR}/abcl --eval '(require :asdf)' --eval '(require :abcl-contrib)' --eval '(asdf:load-system :quicklisp-abcl :force t)' --eval '(progn (setf ql-util::*do-not-prompt* t)(ql:add-to-init-file))' --eval '(ext:quit)'
    45   # Install ANSI tests
    46   - bash -x ${TRAVIS_BUILD_DIR}/ci/sync-ansi-test.bash
     55  - ${ABCL_ROOT}/abcl --eval '(require :asdf)' --eval '(require :abcl-contrib)' --eval '(asdf:load-system :quicklisp-abcl :force t)' --eval '(progn (setf ql-util::*do-not-prompt* t)(ql:add-to-init-file))' --eval '(ext:quit)'
     56
     57  # Install the ANSI-TEST suite
     58  - bash -x ${ABCL_ROOT}/ci/sync-ansi-test.bash
    4759
    4860# TODO: figure out how to add abcl to our path
    4961
    5062script:
    51   - ${TRAVIS_BUILD_DIR}/abcl --batch --load ${TRAVIS_BUILD_DIR}/ci/test-cffi.lisp
    52   - ${TRAVIS_BUILD_DIR}/abcl --batch --load ${TRAVIS_BUILD_DIR}/ci/test-cl+ssl.lisp
    53   - ${TRAVIS_BUILD_DIR}/abcl --batch --load ${TRAVIS_BUILD_DIR}/ci/test-abcl.lisp
    54   - ${TRAVIS_BUILD_DIR}/abcl --batch --load ${TRAVIS_BUILD_DIR}/ci/abcl-prove.lisp
    55   - ${TRAVIS_BUILD_DIR}/abcl --batch --load ${TRAVIS_BUILD_DIR}/ci/test-ansi.lisp
    56   - ${TRAVIS_BUILD_DIR}/abcl --batch --load ${TRAVIS_BUILD_DIR}/ci/release.lisp
     63  - ${ABCL_ROOT}/abcl --batch --load ${ABCL_ROOT}/ci/test-cffi.lisp
     64  - ${ABCL_ROOT}/abcl --batch --load ${ABCL_ROOT}/ci/test-cl+ssl.lisp
     65  - ${ABCL_ROOT}/abcl --batch --load ${ABCL_ROOT}/ci/test-abcl.lisp
     66  - ${ABCL_ROOT}/abcl --batch --load ${ABCL_ROOT}/ci/abcl-prove.lisp
     67  - ${ABCL_ROOT}/abcl --batch --load ${ABCL_ROOT}/ci/test-ansi.lisp
     68 
     69  # This would build a release, which needs an installed TeX which is judged too
     70  # "expensive" to leave as the standard CI process
     71  # - pushd ${ABCL_ROOT} && ant abcl.release abcl.wrapper && popd
     72 
     73  # Print the hashes and sizes of build artifacts
     74  - pushd ${ABCL_ROOT} && ./abcl --batch --load ./ci/release.lisp  && popd
    5775 
    5876
  • trunk/abcl/ci/release.lisp

    r15266 r15268  
    33
    44(if (not (asdf:find-system :abcl-build))
    5     (warn "Failed to find <urn:abcl.org/contrib/abcl-build> in ASDF to build release.")
     5    (warn "Failed to find <urn:abcl.org/contrib/abcl-build> in ASDF to hash release.")
    66    (asdf:make :abcl-build))
    77
    8 (let (ant)
     8(let ((root (uiop:getenv "ABCL_ROOT"))
     9      ant)
     10  (format *standard-output* "ABCL_ROOT='~a'~%" root)
     11  #+(or) ;;; needs TeXlive to render User Manual
    912  (abcl-build:with-ensured-ant (ant)
    1013    (abcl-build:ant/call "build.xml"
    11                          '("abcl.release" "abcl.wrapper"))))))
     14                         '("abcl.release" "abcl.wrapper")))
     15  (let ((dist (concatenate 'string root "/dist/")))
     16    (format *standard-output* "dist='~a'~%" dist)
     17    (multiple-value-bind (hashes report)
     18        (abcl-build:directory-hashes dist)
     19      (format *standard-output* report))))
     20
     21
     22
     23
     24           
     25           
     26                                               
     27
     28
    1229
    1330
Note: See TracChangeset for help on using the changeset viewer.