Add .travis.yml
authorChristoph Berg <[email protected]>
Wed, 27 Nov 2019 14:38:10 +0000 (15:38 +0100)
committerChristoph Berg <[email protected]>
Thu, 28 Nov 2019 10:27:35 +0000 (11:27 +0100)
.travis.yml[new file with mode: 0644]

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..97f363b
--- /dev/null
@@ -0,0 +1,25 @@
+# run the testsuite on travis-ci.com
+---
+# versions to run on
+env:
+  # 9.4 doesn't have a compatible pg_lzcompress.h yet
+  - PG_SUPPORTED_VERSIONS=9.5
+  - PG_SUPPORTED_VERSIONS=9.6
+  - PG_SUPPORTED_VERSIONS=10
+  - PG_SUPPORTED_VERSIONS=11
+  - PG_SUPPORTED_VERSIONS=12
+
+language: C
+dist: xenial
+sudo: required
+
+before_install:
+  # extra apt.pg.o.sh options added in version 204, travis currently has 199 (2019-11-27)
+  - sudo apt-get -qq update
+  - sudo apt-get -y install postgresql-common
+
+install:
+  - sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -p -v $PG_SUPPORTED_VERSIONS -i
+
+script:
+  - make