Skip to content

Commit 4f64f51

Browse files
committed
Added Travis CI.
1 parent 16f3804 commit 4f64f51

File tree

4 files changed

+31
-2
lines changed

4 files changed

+31
-2
lines changed

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
language: bash
2+
sudo: enabled
3+
4+
env:
5+
global:
6+
- NONINTERACTIVE=1
7+
- PUBLIC_IP=auto
8+
- PUBLIC_IPV6=auto
9+
- PRIMARY_HOSTNAME=auto
10+
- SKIP_NETWORK_CHECKS=1
11+
12+
before_script:
13+
- sudo sed -i "s/^127.0.1.1.*/127.0.1.1\t$HOSTNAME.example.com\t$HOSTNAME/" /etc/hosts
14+
- sudo apt-get -yqq update
15+
- sudo apt-get -yqq dist-upgrade
16+
- sudo rm -f /opt/jdk_switcher/jdk_switcher.sh
17+
18+
script:
19+
- sudo setup/start.sh
20+
- curl -IkL "https://$HOSTNAME/"
21+
- curl -IkL "https://$HOSTNAME/admin"
22+
- curl -IkL "https://$HOSTNAME/mail/"
23+
- curl -IkL "https://$HOSTNAME/cloud/"
24+
- bash -c 'shopt -s globstar; shellcheck -s bash **/*.sh || true'
25+
# - cd test
26+
# - pip install -r requirements.txt
27+
# - pytest

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Build Status](https://travis-ci.org/mail-in-a-box/mailinabox.svg?branch=master)](https://travis-ci.org/mail-in-a-box/mailinabox)
2+
13
Mail-in-a-Box
24
=============
35

setup/management.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ done
2929
#
3030
# certbot installs EFF's certbot which we use to
3131
# provision free TLS certificates.
32-
apt_install duplicity python-pip python-virtualenv certbot
32+
apt_install duplicity python-pip python-virtualenv certbot python-certbot-nginx
3333
hide_output pip2 install --upgrade boto
3434

3535
# Create a virtualenv for the installation of Python 3 packages

setup/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ echo "Mail-in-a-Box uses Let's Encrypt to provision free SSL/TLS certificates"
141141
echo "to enable HTTPS connections to your box. We're automatically"
142142
echo "agreeing you to their subscriber agreement. See https://letsencrypt.org."
143143
echo
144-
certbot register --register-unsafely-without-email --agree-tos --config-dir $STORAGE_ROOT/ssl/lets_encrypt
144+
certbot register -n --register-unsafely-without-email --agree-tos --config-dir $STORAGE_ROOT/ssl/lets_encrypt
145145
fi
146146

147147
# Done.

0 commit comments

Comments
 (0)