Skip to content

Commit 9d00b1f

Browse files
hromagnumoubiwann
authored andcommitted
Improvements to local travis setup.
1 parent 7af4f78 commit 9d00b1f

File tree

4 files changed

+44
-11
lines changed

4 files changed

+44
-11
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ dist: trusty
22
sudo: required
33
language: clojure
44
before_script:
5-
- bash test/install_deps.sh
6-
- bash test/start_mesos.sh
5+
- sudo test/install_deps.sh
6+
- sudo test/start_mesos.sh
77
script:
88
- make travis-check
99
jdk:

test/install_deps.sh

100644100755
+4-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#!/usr/bin/env bash
22

3-
sudo apt-get install libevent-dev
3+
apt-get install libevent-dev
44

55
MESOS_DEB=mesos_1.0.1-2.0.93.ubuntu1404_amd64.deb
66
MESOS_DL=http://repos.mesosphere.com/ubuntu/pool/main/m/mesos/$MESOS_DEB
77
curl --remote-name $MESOS_DL
8-
sudo dpkg -i $MESOS_DEB
8+
dpkg -i $MESOS_DEB
99
rm $MESOS_DEB
10-
ls -al /etc/init.d/m*
11-
which mesos-master
12-
which mesos-agent
10+
echo "Mesos master binary: " `which mesos-master`
11+
echo "Mesos agent binary: " `which mesos-agent`

test/local-travis/Dockerfile

+36-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,44 @@
1-
FROM travisci/travis-jvm
1+
FROM quay.io/travisci/travis-jvm
22
MAINTAINER Clojure-Science / Clojure-Aided Enrichment Center <https://github.com/clojusc>
33

4+
ENV DEBIAN_FRONTEND noninteractive
5+
6+
# Work around upstart in a docker image
7+
RUN dpkg-divert --local --rename --add /sbin/initctl
8+
RUN ln -s /bin/true /sbin/initctl
9+
10+
# Work around this bug (won't be fixed in 14.04):
11+
# * https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1325142
12+
RUN dpkg-divert --local --add /etc/init.d/systemd-logind
13+
RUN ln -s /bin/true /etc/init.d/systemd-logind
14+
15+
RUN add-apt-repository ppa:ubuntu-toolchain-r/test -y
16+
RUN apt-get update -y
17+
18+
# Remove problematic software that prevents fully-automated upgrade
19+
RUN apt-get remove \
20+
postgresql-9.1 postgresql-9.1-postgis-2.2-scripts postgresql-9.1-postgis-scripts postgresql-client-9.1 \
21+
postgresql-9.2 postgresql-9.2-postgis-2.1 postgresql-9.2-postgis-2.2-scripts postgresql-9.2-postgis-2.3 postgresql-9.2-postgis-2.3-scripts postgresql-9.2-postgis-scripts postgresql-client-9.2 \
22+
postgresql-9.3 postgresql-9.3-postgis-2.1 postgresql-9.3-postgis-2.3 postgresql-9.3-postgis-2.3-scripts postgresql-9.3-postgis-scripts postgresql-client-9.3
23+
RUN apt-get remove sudo policykit-1 colord
24+
RUN apt-get autoremove
25+
RUN apt-get install -y g++-4.6 libstdc++6-4.6-dev
26+
#RUN apt-get dist-upgrade -y
27+
#RUN apt-get install --only-upgrade -y libstdc++6 libc6 libgcc1
28+
29+
# Mesos needs libs that aren in 14.04 but not in 12.04, so upgrade the release
30+
RUN apt-cache policy update-manager-core
31+
RUN apt-get install update-manager-core
32+
RUN do-release-upgrade -f DistUpgradeViewNonInteractive && \
33+
echo "Successfully upgraded to 14.04." || \
34+
echo "There were issues upgrading to 14.04." ; \
35+
echo "Manual intervention may be needed."
36+
37+
# Install Mesos
438
RUN git clone https://github.com/clojusc/meson.git
539
RUN cd meson && \
640
bash test/install_deps.sh && \
741
bash test/start_mesos.sh && \
8-
cd ../
42+
cd ../
943

1044
CMD ["make", "local-travis-check"]

test/start_mesos.sh

100644100755
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

3-
sudo nohup /usr/sbin/mesos-master --work_dir=/tmp/mesos-master --ip=127.0.0.1 > master.log &
4-
sudo nohup /usr/sbin/mesos-agent --work_dir=/tmp/mesos-agent --master=127.0.0.1:5050 > agent.log &
3+
nohup /usr/sbin/mesos-master --work_dir=/tmp/mesos-master --ip=127.0.0.1 > master.log &
4+
nohup /usr/sbin/mesos-agent --work_dir=/tmp/mesos-agent --master=127.0.0.1:5050 > agent.log &
55

66
sleep 10
77

0 commit comments

Comments
 (0)