mate-desktop / libmateweather

Library to access weather information from online services
https://mate-desktop.org
GNU Lesser General Public License v2.1
21 stars 24 forks source link

Travis CI `.build.yml` fails on Fedora but passes on Debian #109

Closed HectorB-2020 closed 2 years ago

HectorB-2020 commented 2 years ago

Expected behaviour

Travis CI Build results are expected to be consistent on all platforms.

Actual behaviour

Fails on Fedora but passes on Debian.

Steps to reproduce the behaviour

after_scripts:
  - if [ ${DISTRO_NAME} == "fedora" ];then
  -   cppcheck --xml --output-file=cppcheck.xml --enable=warning,style,performance,portability,information,missingInclude .
  -   cppcheck-htmlreport --title=${REPO_NAME} --file=cppcheck.xml --report-dir=cppcheck-htmlreport
  -   ./gen-index -l 20
  - fi
  - if [ ${DISTRO_NAME} == "debian" ];then
  -     make check
  - fi
  - make distcheck

As you see Shell script gen-index runs only on Fedora.

Failing line with git:

# add the history results
temp_work_dir=`mktemp -d -u`
remote_url=`git config remote.origin.url`

and related logs:

++ mktemp -d -u
+ temp_work_dir=/tmp/tmp.g36HXaQ902
++ git config remote.origin.url
+ remote_url=
!!! ERROR: run command [docker exec -t libmateweather-fedora-build /rootdir/after_scripts].
The command "./docker-build --name ${DISTRO} --verbose --config .build.yml --build scripts" exited with 1.

MATE general version

1.26

Package version

N/A, Travis CI

Linux Distribution

N/A, Travis CI

Link to bugreport of your Distribution (requirement)

N/A, Travis CI

raveit65 commented 2 years ago

Current builds are runnung fine https://app.travis-ci.com/github/mate-desktop/libmateweather/builds/253558792 Closing.