summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCecile Tonglet2017-12-26 09:47:46 +0100
committerCecile Tonglet2017-12-26 12:19:45 +0100
commit7c744b413544350bf9c1f4fb6067ae1506136d1e (patch)
tree0986d16f70d610561e477af61f940f1c7da91a35
parent3c5b8b9d268ff0766b48c4d2adbf7e2ebf6bf59b (diff)
downloadaur-7c744b413544350bf9c1f4fb6067ae1506136d1e.tar.gz
Added .travis.yml
-rw-r--r--.travis.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 00000000000..666cae1fe30
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,26 @@
+language: generic
+sudo: true
+env:
+ - PLATFORM=rpi
+ - PLATFORM=rpi-2
+before_install:
+ - sudo chmod 777 .
+ - sudo mkdir root
+install:
+ - sudo apt-get update
+ - sudo apt-get install -y qemu-user-static bsdtar
+ - curl -sSL http://os.archlinuxarm.org/os/ArchLinuxARM-$PLATFORM-latest.tar.gz | sudo bsdtar -xpf - -C root || echo ok
+ - sudo rm -fv root/usr/share/libalpm/hooks/*
+ - git clone --bare https://github.com/libretro/RetroArch.git RetroArch
+before_script:
+ - sudo mount -o bind root root
+ - sudo mount -o bind /dev root/dev
+ - sudo mount -o bind /proc root/proc
+ - sudo mount -o bind /sys root/sys
+ - sudo mkdir -p root/src
+ - sudo mount -o bind . root/src
+ - sudo cp --remove-destination /etc/resolv.conf root/etc/resolv.conf
+ - sudo cp /usr/bin/qemu-arm-static root/bin/
+ - sudo LC_ALL=C chroot root qemu-arm-static /bin/bash -c "pacman -Sy --needed --noconfirm --noprogressbar base-devel git openal sdl2"
+script:
+ - sudo LC_ALL=C chroot root qemu-arm-static /bin/bash -c "cd /src && su -s /bin/sh -c 'makepkg --noarchive --holdver' nobody"