diff options
-rw-r--r-- | .builds/archlinux.yml | 26 | ||||
-rw-r--r-- | .builds/debian.yml | 26 | ||||
-rw-r--r-- | .builds/fedora.yml | 26 | ||||
-rw-r--r-- | .builds/freebsd.yml | 23 | ||||
-rw-r--r-- | .builds/ubuntu.yml | 26 | ||||
-rw-r--r-- | .travis.yml | 46 |
6 files changed, 127 insertions, 46 deletions
diff --git a/.builds/archlinux.yml b/.builds/archlinux.yml new file mode 100644 index 0000000..f52c5bf --- /dev/null +++ b/.builds/archlinux.yml @@ -0,0 +1,26 @@ +image: archlinux +packages: + - clang + - cmocka + - freeimage + - libjpeg-turbo + - libpng + - librsvg + - libtiff + - sdl2 + - sdl2_ttf +sources: + - https://git.sr.ht/~exec64/imv +tasks: + - configure: | + cd imv + sed -i -e 's/BACKEND_\(.*\)=no/BACKEND_\1=yes/' config.mk + cat config.mk + - gcc: | + cd imv + CC=gcc BUILDDIR=gcc make + CC=gcc BUILDDIR=gcc make check + - clang: | + cd imv + CC=clang BUILDDIR=clang make + CC=clang BUILDDIR=clang make check diff --git a/.builds/debian.yml b/.builds/debian.yml new file mode 100644 index 0000000..42da8b3 --- /dev/null +++ b/.builds/debian.yml @@ -0,0 +1,26 @@ +image: debian/stable +packages: + - clang + - libcmocka-dev + - libfreeimage-dev + - libpng-dev + - librsvg2-dev + - libsdl2-dev + - libsdl2-ttf-dev + - libtiff-dev + - libturbojpeg-dev +sources: + - https://git.sr.ht/~exec64/imv +tasks: + - configure: | + cd imv + sed -i -e 's/BACKEND_\(.*\)=no/BACKEND_\1=yes/' config.mk + cat config.mk + - gcc: | + cd imv + CC=gcc BUILDDIR=gcc make + CC=gcc BUILDDIR=gcc make check + - clang: | + cd imv + CC=clang BUILDDIR=clang make + CC=clang BUILDDIR=clang make check diff --git a/.builds/fedora.yml b/.builds/fedora.yml new file mode 100644 index 0000000..9766b52 --- /dev/null +++ b/.builds/fedora.yml @@ -0,0 +1,26 @@ +image: fedora/latest +packages: + - SDL2-devel + - SDL2_ttf-devel + - clang + - freeimage-devel + - libcmocka-devel + - libpng-devel + - librsvg2-devel + - libtiff-devel + - turbojpeg-devel +sources: + - https://git.sr.ht/~exec64/imv +tasks: + - configure: | + cd imv + sed -i -e 's/BACKEND_\(.*\)=no/BACKEND_\1=yes/' config.mk + cat config.mk + - gcc: | + cd imv + CC=gcc BUILDDIR=gcc make + CC=gcc BUILDDIR=gcc make check + - clang: | + cd imv + CC=clang BUILDDIR=clang make + CC=clang BUILDDIR=clang make check diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml new file mode 100644 index 0000000..aebb9d1 --- /dev/null +++ b/.builds/freebsd.yml @@ -0,0 +1,23 @@ +image: freebsd/latest +packages: + - devel/gmake + - devel/pkgconf + - devel/sdl20 + - graphics/freeimage + - graphics/libjpeg-turbo + - graphics/librsvg2 + - graphics/png + - graphics/sdl2_ttf + - graphics/tiff + - sysutils/cmocka +sources: + - https://git.sr.ht/~exec64/imv +tasks: + - configure: | + cd imv + sed -i -e 's/BACKEND_\(.*\)=no/BACKEND_\1=yes/' config.mk + cat config.mk + - build: | + cd imv + gmake + gmake check diff --git a/.builds/ubuntu.yml b/.builds/ubuntu.yml new file mode 100644 index 0000000..8df4b5c --- /dev/null +++ b/.builds/ubuntu.yml @@ -0,0 +1,26 @@ +image: ubuntu/latest +packages: + - clang + - libcmocka-dev + - libfreeimage-dev + - libpng-dev + - librsvg2-dev + - libsdl2-dev + - libsdl2-ttf-dev + - libtiff-dev + - libturbojpeg-dev +sources: + - https://git.sr.ht/~exec64/imv +tasks: + - configure: | + cd imv + sed -i -e 's/BACKEND_\(.*\)=no/BACKEND_\1=yes/' config.mk + cat config.mk + - gcc: | + cd imv + CC=gcc BUILDDIR=gcc make + CC=gcc BUILDDIR=gcc make check + - clang: | + cd imv + CC=clang BUILDDIR=clang make + CC=clang BUILDDIR=clang make check diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a35bfcf..0000000 --- a/.travis.yml +++ /dev/null @@ -1,46 +0,0 @@ -sudo: required -dist: trusty - -language: c - -compiler: - - clang - - gcc - -cache: - directories: - - $HOME/cmocka - -env: - - CFLAGS="-W -Wall -Wextra -Wpedantic -Wpointer-arith -Wstrict-prototypes -Wshadow -Werror" - -script: - - sed -i 's/BACKEND_\(.*\)=no/BACKEND_\1=yes/' config.mk # Enable all backends for test build - - make V=yes - - CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" make check - -notifications: - email: false - -addons: - apt: - packages: - - libfreeimage-dev - - libjpeg-turbo8-dev - - libpng-dev - - librsvg2-dev - - libsdl2-ttf-dev - - libtiff-dev - -install: - # Note: travis concatinates lines belonging to the same item - - if [ ! -d $HOME/cmocka/cmocka-1.1.0 ]; - then - curl "https://cmocka.org/files/1.1/cmocka-1.1.0.tar.xz" | tar xJf - -C $HOME/cmocka && - cd $HOME/cmocka && - env CFLAGS="-O2 -pipe" cmake cmocka-1.1.0 && - env CFLAGS="-02 -pipe" make && - cd -; - fi - - sudo make -C $HOME/cmocka install - - sudo ldconfig |