From bdd494881a6f42199e2d2b37e0b6d26b84ed4482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20For=C3=A9?= Date: Thu, 27 Apr 2017 10:47:12 -0700 Subject: [PATCH] Add Travis CI (#13) --- .travis.yml | 16 ++++++++++++++++ README.md | 1 - 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..6e5f19c9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +language: generic + +services: + - docker + +env: + - DEPENDENCY_PACKAGES="cmake libgranite-dev libswitchboard-2.0-dev valac" + +install: + - docker pull elementary/docker:loki + - docker run -v "$PWD":/tmp/build-dir elementary/docker:loki /bin/sh -c "apt-get update && apt-get -y install $DEPENDENCY_PACKAGES && cd /tmp/build-dir && cmake . && env CTEST_OUTPUT_ON_FAILURE=true make" + - docker pull elementary/docker:loki-unstable + - docker run -v "$PWD":/tmp/build-dir elementary/docker:loki-unstable /bin/sh -c "apt-get update && apt-get -y install $DEPENDENCY_PACKAGES && cd /tmp/build-dir && cmake . && env CTEST_OUTPUT_ON_FAILURE=true make" + +script: + - echo BUILDS PASSED diff --git a/README.md b/README.md index 6246d723..3c190502 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ You'll need the following dependencies: * cmake * libgranite-dev -* libgtk-3-dev * libswitchboard-2.0-dev * valac