summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-06-09 20:36:21 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-06-11 12:14:39 +0200
commit5822316c807654dbbd2e2e9aa1e5d51942ad38bf (patch)
tree16da29276e3c914be2c0a571385da9c7c6914d20 /.travis.yml
parent17f8c2edec3c62d00d0a77b3d114540a6cb2ad9a (diff)
downloadapk-tools-5822316c807654dbbd2e2e9aa1e5d51942ad38bf.tar.bz2
apk-tools-5822316c807654dbbd2e2e9aa1e5d51942ad38bf.tar.xz
travis: set up running tests on Travis CI
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..6b19dec
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,27 @@
+sudo: required
+dist: trusty
+language: minimal
+env:
+ matrix:
+ - ARCH=x86_64
+ - ARCH=x86
+ - ARCH=aarch64
+ - ARCH=armhf
+ - ARCH=ppc64le
+before_install:
+ - "wget 'https://raw.githubusercontent.com/alpinelinux/alpine-chroot-install/v0.5.0/alpine-chroot-install' \
+ && echo '1866bc078cab859cefcbdbbd2dee0141e0bee8d5 alpine-chroot-install' | sha1sum -c || exit 1"
+ - alpine() { /alpine/enter-chroot -u "$USER" "$@"; }
+install:
+ - sudo sh alpine-chroot-install -a "$ARCH"
+ -p 'build-base alpine-sdk libfetch-dev libressl libressl-dev linux-headers lua5.2-dev zlib-dev'
+before_script:
+ - /alpine/enter-chroot "addgroup $USER wheel && addgroup $USER abuild"
+ - alpine abuild-keygen -ain
+script:
+ - alpine make
+ - alpine src/apk --version
+ - alpine make static
+ - alpine src/apk.static --version
+ - alpine make check
+ - alpine make -C test root-tests