travis: add arm64 build
authorMichael Wallner <mike@php.net>
Wed, 7 Oct 2020 11:51:43 +0000 (13:51 +0200)
committerMichael Wallner <mike@php.net>
Wed, 7 Oct 2020 11:51:43 +0000 (13:51 +0200)
.github/workflows/cmake-build-ci.gen
.github/workflows/cmake-build-ci.yml
.travis.yml [new file with mode: 0644]

index 6f7c48a18e27d1129f740ce228efdb909bd78bbd..0d1e1be072a948d29efd468d93e20bf360f8c9a4 100755 (executable)
@@ -190,6 +190,7 @@ on:
   push:
     paths-ignore:
       - "docs/**"
+      - ".travis.yml"
     branches-ignore:
       - gh-pages
       - catch
index e2de43d1d1df4fc688af5ca93b7ed085ce41d429..492c4d532bd44355776e5d0e85e22356854de053 100644 (file)
@@ -4,6 +4,7 @@ on:
   push:
     paths-ignore:
       - "docs/**"
+      - ".travis.yml"
     branches-ignore:
       - gh-pages
       - catch
diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..ff23b34
--- /dev/null
@@ -0,0 +1,43 @@
+os: linux
+dist: focal
+arch: arm64
+language: cpp
+
+addons:
+ apt:
+  packages:
+   - libevent-dev
+   - libsasl2-dev
+
+env:
+ - CMAKE_BUILD_TYPE=Debug BUILD_TESTING=true ENABLE_SASL=true
+
+install:
+ - |
+   git clone --depth 1 -b 1.6.7 https://github.com/memcached/memcached
+   cd memcached
+   ./autogen.sh
+   CFLAGS="-O2 -pipe" ./configure \
+     --prefix=/opt \
+     --disable-coverage \
+     --disable-docs \
+     --disable-dependency-tracking \
+     --enable-sasl \
+     --enable-sasl-pwdb \
+     ;
+   make -j2
+   make install
+   cd ..
+
+before_script:
+ - mkdir build
+
+script:
+ - cd build
+ - cmake -DMEMCACHED_BINARY=/opt/bin/memcached ..
+ - make -j2 VERBOSE=1
+ - make test VERBOSE=1
+ - make install DESTDIR=.
+
+after_failure:
+ - cat Testing/Temporary/LastTest.log || true