bdbcat / oesenc_pi

GNU General Public License v2.0
10 stars 17 forks source link

build: upload: cleanup tarball - travis-raspbian-armhf #87

Closed rgleason closed 4 years ago

rgleason commented 4 years ago

As a result of https://github.com/bdbcat/oesenc_pi/pull/85

But where to put `source $HOME/project/ci/commons.sh

` Replace this code

#sudo tar xf $tarball
#tar_dir=${tarball%%.tar.gz}
#ls -la
#ls -la $tar_dir
#sudo cp $xml $tar_dir/metadata.xml
#tar_dir_here=${tar_dir##*/}
#sudo tar czf $tarball $tar_dir_here

With this code

# Repack using gnu tar (cmake's is problematic) and add metadata.
cp $xml metadata.xml
sudo chmod 666 $tarball
repack $tarball metadata.xml

Also shouldn't both raspbian stretch and buster have xml inside and be uploaded? Could this be done with circleci?


Tried this and it failed immediately because of docker probably. https://travis-ci.com/github/rgleason/squiddio_pi/jobs/320732755 $ ./ci/travis-build-raspbian-armhf.sh +sudo apt-get -qq update +source /home/travis/project/ci/commons.sh ./ci/travis-build-raspbian-armhf.sh: line 10: /home/travis/project/ci/commons.sh: No such file or directory

bdbcat commented 4 years ago

Arm builds using Travis are not affected, the current code works fine. We cannot build for target ARM on circleci, yet. There is a project underway at circleci to enable that functionality, someday.

rgleason commented 4 years ago

tnks