aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.ci/build.sh16
-rw-r--r--.travis.yml22
2 files changed, 38 insertions, 0 deletions
diff --git a/.ci/build.sh b/.ci/build.sh
new file mode 100755
index 00000000..ece5b2a3
--- /dev/null
+++ b/.ci/build.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+# clone and build wlc
+git clone https://github.com/Cloudef/wlc.git
+cd wlc
+git submodule update --init --recursive # - initialize and fetch submodules
+mkdir target && cd target # - create build target directory
+cmake -DCMAKE_BUILD_TYPE=Upstream .. # - run CMake
+make # - compile
+sudo make install # - install
+
+cd ../..
+
+# build sway
+cmake .
+make
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 00000000..5d1f8faa
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,22 @@
+sudo: required
+
+arch:
+ packages:
+ - cmake
+ - xorg-server-xwayland
+ - asciidoc
+ - pcre
+ - json-c
+ - pixman
+ - wayland
+ - libxkbcommon
+ - libinput
+ - libx11
+ - libxcb
+ - libgl
+ - mesa
+ script:
+ - "bash .ci/build.sh"
+
+script:
+ - "curl -s https://raw.githubusercontent.com/mikkeloscar/arch-travis/master/arch-travis.sh | bash"