Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
dist: trusty
language: bash
sudo: required
script: "sudo bash -x scripts/setup.sh"
notifications:
irc:
template:
- "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}"
- "Change view : %{compare_url}"
- "Build details : %{build_url}"
channels:
- "irc.oftc.net#test-anadahz-channel"
use_notice: true
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Lepidopter - OONI powered Raspberry Pi image

[![Build Status]
(https://travis-ci.org/TheTorProject/lepidopter.svg?branch=master)](https://travis-ci.org/TheTorProject/lepidopter)

## Description
The generic lepidopter image build script using the vmdebootstap method.
The image provides a ready to run
Expand Down
15 changes: 9 additions & 6 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,15 @@ apt-get install -y zip
zip --verbose -9 images/${image_file}.zip images/${image_file}
}

# Add backports APT repository
echo "deb $APT_MIRROR ${DEB_RELEASE}-backports main" > \
/etc/apt/sources.list.d/${DEB_RELEASE}-backports.list

apt-get update -q
apt-get install -t ${DEB_RELEASE}-backports -y vmdebootstrap qemu-utils
if [ "$( lsb_release -is )" == "Debian" ]; then
# Add backports APT repository
echo "deb $APT_MIRROR ${DEB_RELEASE}-backports main" > \
/etc/apt/sources.list.d/${DEB_RELEASE}-backports.list
apt-get update -q
apt-get install -t ${DEB_RELEASE}-backports -y vmdebootstrap qemu-utils
else
apt-get install -y vmdebootstrap qemu-utils
fi

# Copy know working vmdebootstrap version 0.10 from git
cd $HOME
Expand Down