forked from nestybox/sysbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
33 lines (27 loc) · 1.03 KB
/
.travis.yml
File metadata and controls
33 lines (27 loc) · 1.03 KB
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
dist: focal
language: go
git:
submodules: false
before_install:
# Install linux-kernel-headers package.
- sudo apt-get update && sudo apt-get install -y linux-headers-$(uname -r)
# Build shiftfs kernel module (not available in GCP's ubuntu-focal machines).
- sudo apt-get install dkms -y
- git clone -b k5.11 https://github.com/nestybox/shiftfs-dkms.git shiftfs
- cd shiftfs
- ./update1
- sudo make -f Makefile.dkms
- sudo modprobe shiftfs
- cd ..
# For parent repos (i.e. sysbox, sysbox-fs, sysbox-libs), let's avoid dealing with ssh-keys mess by simply replacing their
# ssh url with an http one.
- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
- git submodule update --init
- sed -i 's/git@github.com:/https:\/\/github.com\//' sysbox-fs/.gitmodules
- sed -i 's/git@github.com:/https:\/\/github.com\//' sysbox-libs/.gitmodules
- git -C sysbox-fs submodule update --init
- git -C sysbox-libs submodule update --init
script:
- make sysbox
- make test-sysbox-ci
- sudo make test-cleanup