gonzalo / gphoto2-updater

Gphoto2 compiler and installer script. This script was initially created for Raspbian and Raspberry Pi but it is also tested for Ubuntu and Debian Jessie & Wheezy.
http://github.com/gonzalo/gphoto2-updater
292 stars 72 forks source link

Automated Testing and Update #53

Closed scribblemaniac closed 7 years ago

scribblemaniac commented 7 years ago

This updates gphoto2 and libgphoto2 to version 2.5.15. Additionally, it adds automated testing through Travis CI on the following distributions (with the help of Docker):

It will run the installer script (stable only) on each of these distros and will check to make sure that the right version has been successfully installed. Unfortunately because of the different architecture, it makes it very difficult to run automated test for Raspbian. I even surprised myself when I actually got it to work using a Docker image with QEMU, however the compilation was too slow and it timed out after Travis's 50 minute time limit for jobs. Here is the code for future reference:

      - stage: Raspbian Lite Latest (QEMU)
        before_install: 
          - wget "https://downloads.raspberrypi.org/raspbian_lite_latest"
          - unzip raspbian_lite_latest -d raspbian_lite_image
          - mv raspbian_lite_image/*.img raspbian_lite_image/raspbian_lite.img
          - docker pull ryankurte/docker-rpi-emu:latest
          - sudo apt-get -qq update
          - sudo apt-get install -y qemu qemu-user-static
        script:
          - echo "$INSTALL_CMD && $GPHOTO2_TEST_CMD && LIBGPHOTO2_TEST_CMD" | docker run -i --privileged=true -v $(pwd)/raspbian_lite_image:/usr/rpi/images -w /usr/rpi ryankurte/docker-rpi-emu /bin/bash -c './run.sh images/raspbian_lite.img'

In order to enable the automated testing on this repository, you will need to log into the Travis CI website and enable it for this repository.

gonzalo commented 7 years ago

Exceptional update @scribblemaniac !!!