forked from containers/fuse-overlayfs
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
58 lines (58 loc) · 2.58 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
language: c
sudo: required
dist: xenial
addons:
apt:
packages:
- automake
- autotools-dev
- git
- make
- gcc
- pkg-config
- wget
- xz-utils
- python3
- python3-pip
- g++
- libacl1-dev
- libtest-most-perl
- stress-ng
notifications:
email:
on_success: never
on_failure: always
slack:
secure: YxTODwJMNPymwu4Vm0GqYC3QKXnZLjUb5HUdp2mxTsJCmuwR7fVj8gFU/vRP21Kdx/EJqnDnnGCatbmTWwawt3LYjoYqgZO/+zvaXY3xqEj7y/fZ34/0s37nY1RE/nXPBTE30SvAuyDfvqhyjKUBOymZik67Hp0k/BzpCdaeXOm3gzHhBMuiNBx+q3POC4EB+9cf4t3VjCrJIz+1UxzwIvzYPEC2cWN9xTV+B5qIsT4AlN+qMzNr37ECRJUhyaj0BMCsrKQA/E6QdzQJeCFIG+5a0Pqvm2skUZHEiNKjj0aqhGji3kOTAhNMul/247nEb4HWlRSzlBqlc7mVtBXA8hIToKBBH0tpMJI7gouMtNPAML1zd/Y3DSq6xUu7vsUNAiDYB32/VL0QMTVLzNFCKtuNp0FzP0m8s69RV1jZfHlfpcPgQOjb8LLpWpgDef+8+qoddrftEUFLDlLZ/1g5fm147wmPJTNbwI1bbbN4qWyDKkGekgdSTr70XD5dIq2THL6bzcW7CnXOcVcPRv43SC2GKTZv2Kgwt/KzfaOnXMn2JIWxRGodeL4yhbXHQHhGtbbOUhHER6L0ZRZtIu2iqNF/GogKHaBBs2tliLKGtceGFnv3Ikyisy8YeHPr12yMN4QjpQi5bRZstGXoJ2Z/5s73vSIBkIObShqdkDQ0Z6E=
before_install:
- |
# check that we actually need to build anything
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
TRAVIS_COMMIT_RANGE="FETCH_HEAD...$TRAVIS_BRANCH"
fi
git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(README.md)|(COPYING)/' || {
echo "Only non-source files were updated, no need to trigger a build."
exit
}
- sudo -H pip3 install setuptools
- sudo mkdir -p /lower /upper /merged
- (wget http://download.tuxera.com/sw/qa/pjd-fstest-20090130-RC.tgz; tar xf pjd-fstest-20090130-RC.tgz;
cd pjd-fstest-20090130-RC; gcc -Wall -DHAS_ACL fstest.c -o fstest -lacl; patch -p1
<$TRAVIS_BUILD_DIR/tests/pjd-fstest-20090130-RC_migratefs.patch)
- (git clone git://github.com/ninja-build/ninja.git && cd ninja && python3 ./bootstrap.py
&& sudo cp ninja /usr/bin)
- (git clone --branch 0.49 https://github.com/mesonbuild/meson.git; cd meson; sudo python3 ./setup.py
install)
- (wget https://github.com/libfuse/libfuse/releases/download/fuse-3.2.6/fuse-3.2.6.tar.xz;
tar xf fuse-3.2.6.tar.xz; cd fuse-3.2.6; mkdir build; cd build; meson .. --prefix
/usr && ninja && sudo ninja install)
script:
- ./autogen.sh
- ./configure
- make -j $(nproc)
- sudo make -j install
- sudo /usr/local/bin/migratefs -o lowerdir=/lower,upperdir=/upper /merged
- sudo mkdir /merged/test && sudo chown $USER /merged/test
- (cd /merged/test; sudo prove -r $TRAVIS_BUILD_DIR/pjd-fstest-20090130-RC)
- (cd $TRAVIS_BUILD_DIR/tests; sudo ./run.sh)
- cd /merged/test && travis_wait sudo stress-ng --class filesystem --seq 1 -t 30s -x apparmor,fiemap,rdrand,sync-file,xattr