-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
60 lines (51 loc) · 1.85 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
51
52
53
54
55
56
57
58
59
60
branches:
only:
- master
- /^v\d/
- /-dev$/
notifications:
email: false
sudo: required
language: perl
dist: xenial
perl:
- "5.10"
- "5.14"
- "5.18"
- "5.20"
- "5.22"
- "5.24"
- "5.26"
before_install:
- sudo sh -c 'echo "deb http://ppa.launchpad.net/gluster/glusterfs-4.1/ubuntu xenial main" >> /etc/apt/sources.list'
- sudo sh -c 'echo "deb-src http://ppa.launchpad.net/gluster/glusterfs-4.1/ubuntu xenial main" >> /etc/apt/sources.list'
- chmod 0600 ~/.gnupg/gpg.conf
- chmod 0700 ~/.gnupg
- sudo apt-get install -y software-properties-common
- sudo add-apt-repository --yes ppa:gluster/glusterfs-4.1
- 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 systemctl enable glusterd
- sudo systemctl start glusterd
- sudo sh -c 'echo "127.0.0.1 node1" >> /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 --sudo --notest --skip-satisfied --installdeps .
- cpanm --sudo --notest --skip-satisfied Devel::Cover::Report::Codecov
script:
- perl Makefile.PL
- make
- cover -delete
- TEST_VERBOSE=1 TEST_FUNCTION=1 HARNESS_PERL_SWITCHES="-MDevel::Cover=+ignore,^local/|^t/" prove -v -r t
after_success:
- cover -report codecov