Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retirer les dernier restes de Travis #6175

Closed
Arnaud-D opened this issue Sep 18, 2021 · 0 comments · Fixed by #6179
Closed

Retirer les dernier restes de Travis #6175

Arnaud-D opened this issue Sep 18, 2021 · 0 comments · Fixed by #6179
Assignees
Labels
C-DevelopmentEnv Amélioration de l'environnement de dev S-BUG Corrige un problème

Comments

@Arnaud-D
Copy link
Contributor

Description du bug

J'ai l'impression qu'il reste quelques miettes de Travis :

  • https://github.com/zestedesavoir/zds-site/blob/dev/zds/settings/travis_fixture.py
  • ## travis code
    # https://github.com/travis-ci/travis-build/blob/master/lib/travis/build/bash/travis_fold.bash
    zds_travis_fold() {
    local action="${1}"
    local name="${2}"
    echo -en "travis_fold:${action}:${name}\\r${ANSI_CLEAR}"
    }
    # https://github.com/travis-ci/travis-build/blob/master/lib/travis/build/bash/travis_nanoseconds.bash
    zds_travis_nanoseconds() {
    local cmd='date'
    local format='+%s%N'
    if hash gdate >/dev/null 2>&1; then
    cmd='gdate'
    elif [[ "${TRAVIS_OS_NAME}" == osx ]]; then
    format='+%s000000000'
    fi
    "${cmd}" -u "${format}"
    }
    # https://github.com/travis-ci/travis-build/blob/master/lib/travis/build/bash/travis_time_start.bash
    # change : prefixed global variable with ZDS_
    zds_travis_time_start() {
    ZDS_TRAVIS_TIMER_ID="ZDS_$(printf %08x $((RANDOM * RANDOM)))"
    ZDS_TRAVIS_TIMER_START_TIME="$(zds_travis_nanoseconds)"
    export ZDS_TRAVIS_TIMER_ID ZDS_TRAVIS_TIMER_START_TIME
    echo -en "travis_time:start:${ZDS_TRAVIS_TIMER_ID}\\r${ANSI_CLEAR}"
    }
    # https://github.com/travis-ci/travis-build/blob/master/lib/travis/build/bash/travis_time_finish.bash
    # change : prefixed global variable with ZDS_
    zds_travis_time_finish() {
    local result="${?}"
    local travis_timer_end_time
    travis_timer_end_time="$(zds_travis_nanoseconds)"
    local duration
    duration="$((travis_timer_end_time - ZDS_TRAVIS_TIMER_START_TIME))"
    echo -en "travis_time:end:${ZDS_TRAVIS_TIMER_ID}:start=${ZDS_TRAVIS_TIMER_START_TIME},finish=${travis_timer_end_time},duration=${duration}\\r${ANSI_CLEAR}"
    return "${result}"
    }
    ##
    ## start fold for travis
    ZDS_SHOW_TRAVIS_FOLD=0
    if $(_in "--travis-output" $@); then
    ZDS_SHOW_TRAVIS_FOLD=1
    fi

Comportement attendu

A priori, on ne se sert plus de Travis, donc tout ça devrait disparaître.

@Arnaud-D Arnaud-D added S-BUG Corrige un problème C-DevelopmentEnv Amélioration de l'environnement de dev labels Sep 18, 2021
@Arnaud-D Arnaud-D self-assigned this Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-DevelopmentEnv Amélioration de l'environnement de dev S-BUG Corrige un problème
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant