-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
24 lines (24 loc) · 1001 Bytes
/
.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
language: erlang
otp_release:
- 17.5
- 18.0
#
# 1. install mesos
# 2. upgrade gcc 4.8 - Travis runs an older version (4.6) by default
# 3. start the mesos master and slave services
# 4. download and build protobuffer 2.5 - known issue with Travis
#
before_install:
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- DISTRO=$(lsb_release -is | tr '[:upper:]' '[:lower:]')
- CODENAME=$(lsb_release -cs)
- echo "deb http://repos.mesosphere.io/${DISTRO} ${CODENAME} main" | sudo tee /etc/apt/sources.list.d/mesosphere.list
- sudo apt-get -y update
- sudo apt-get -y install mesos g++-4.8
- export CXX="g++-4.8" CC="gcc-4.8"
- sudo service mesos-master start
- sudo service mesos-slave start
- wget http://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz
- tar xzvf protobuf-2.5.0.tar.gz
- cd protobuf-2.5.0 && ./configure && make && sudo make install && cd ..