-
Notifications
You must be signed in to change notification settings - Fork 42
/
.travis.yml
33 lines (25 loc) · 1.3 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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