Skip to content

Commit

Permalink
Add Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
huaicheng committed Jan 12, 2021
1 parent 3d98005 commit 8730066
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
before_install:
- mkdir build-femu && cd build-femu && cp ../femu-scripts/femu-copy-scripts.sh . && ./femu-copy-scripts.sh && sudo ./pkgdep.sh

dist: focal
language: c
compiler: gcc
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test' ]
packages: [ 'ninja-build' ]

script:
- ./femu-compile.sh
- ninja -v
5 changes: 4 additions & 1 deletion femu-scripts/pkgdep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ SYSTEM=`uname -s`

if [[ -f /etc/debian_version ]]; then
# Includes Ubuntu, Debian
apt-get install -y gcc pkg-config git libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev ninja meson
apt-get install -y gcc pkg-config git libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev
apt-get install -y libaio-dev

# Additional dependencies
apt-get install -y libnuma-dev
apt-get install -y ninja-build
else
echo "pkgdep: unsupported system type ($SYSTEM), please install QEMU depencies manually"
exit 1
fi

echo "===> Dependency installation ... Done!"

0 comments on commit 8730066

Please sign in to comment.