forked from gluster/libgfapi-perl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (42 loc) · 1.55 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
branches:
only:
- master
- /^v\d/
notifications:
email: false
sudo: required
language: perl
dist: trusty
perl:
- "5.10"
- "5.14"
- "5.18"
- "5.20"
- "5.22"
- "5.24"
before_install:
- sudo sh -c 'echo "deb http://ppa.launchpad.net/gluster/glusterfs-3.7/ubuntu trusty main" >> /etc/apt/sources.list'
- sudo sh -c 'echo "deb-src http://ppa.launchpad.net/gluster/glusterfs-3.7/ubuntu trusty main" >> /etc/apt/sources.list'
- chmod 0600 ~/.gnupg/gpg.conf
- chmod 0700 ~/.gnupg
- gpg --keyserver pgpkeys.mit.edu --recv-key 13E01B7B3FE869A9
- gpg -a --export 13E01B7B3FE869A9 | sudo apt-key add -
- sudo apt-get update
- sudo apt-get install -y glusterfs-server glusterfs-client libacl1 attr
- sudo dpkg-query -L glusterfs-server
- sudo dpkg-query -L glusterfs-client
- sudo update-rc.d glusterfs-server defaults
- sudo sh -c 'echo "node1 127.0.0.1" >> /etc/hosts'
- sudo gluster peer probe node1
- sudo mkdir -p /{export,mnt}/libgfapi-perl
- sudo chmod -R 777 /{export,mnt}/libgfapi-perl
- sudo gluster volume create libgfapi-perl transport tcp node1:/export/libgfapi-perl force
- sudo gluster volume start libgfapi-perl
- sudo gluster volume set libgfapi-perl allow-insecure on
- sudo gluster volume status libgfapi-perl detail
- sudo mount -t glusterfs -o log-level=DEBUG node1:/libgfapi-perl /mnt/libgfapi-perl
- sudo ls -al /mnt/libgfapi-perl
install:
- cpanm -quiet --notest --skip-satisfied --installdeps .
script:
- perl .TRAVIS.PL 2>&1