1
0
mirror of https://github.com/tomeshnet/prototype-cjdns-pi synced 2025-10-05 23:52:49 +02:00
Files
tomeshnet-prototype-cjdns-pi/.travis.yml
2018-11-23 19:50:29 -05:00

34 lines
1.3 KiB
YAML

sudo: required
services:
- docker
install: true
before_script:
- sudo apt-get --yes --no-install-recommends install binfmt-support qemu-user-static
- echo ':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-arm-static:' | sudo tee -a /proc/sys/fs/binfmt_misc/register
env:
- DISTRO=jessie
- DISTRO=latest
script:
# Run shellcheck on branch
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, PR=$PR, BRANCH=$BRANCH"
- git clone https://github.com/tomeshnet/prototype-cjdns-pi.git
- cd prototype-cjdns-pi/scripts
- git checkout ${BRANCH}
- bash -c 'shopt -s globstar; shellcheck -x install install2 */install **/*.sh'
- cd ../..
# Build docker for ARM tests
- cp /usr/bin/qemu-arm-static travis/${DISTRO}/
- docker build -t tomeshnet/prototype-cjdns-pi:${DISTRO} travis/${DISTRO}/
# Validate install script download and make executable
# - docker run tomeshnet/prototype-cjdns-pi:${DISTRO} /bin/sh -c "wget https://raw.githubusercontent.com/tomeshnet/prototype-cjdns-pi/master/scripts/install; chmod +x install; ./install"
# TODO Test installation