From patchwork Tue Nov 25 03:01:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 414207 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 04EF0140170 for ; Tue, 25 Nov 2014 14:01:57 +1100 (AEDT) Received: from ozlabs.org (ozlabs.org [103.22.144.67]) by lists.ozlabs.org (Postfix) with ESMTP id E32471A0390 for ; Tue, 25 Nov 2014 14:01:56 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from mail-pa0-x231.google.com (mail-pa0-x231.google.com [IPv6:2607:f8b0:400e:c03::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id E8EDF1A0072 for ; Tue, 25 Nov 2014 14:01:54 +1100 (AEDT) Received: by mail-pa0-f49.google.com with SMTP id eu11so10784919pac.22 for ; Mon, 24 Nov 2014 19:01:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jms.id.au; s=google; h=from:to:subject:date:message-id; bh=fLUHca0pFAQD+d4YrN8mUG9JE7ZthqM0vYHR7WGKW2o=; b=dn3HBlvRZEXRbpaKweNJcaKtySzEIe756JsVUDM6SUPMG/rCOHhMVAajo3mG23UpyA mixJB+TZ+erULDwfpuOOSyJFSdGFPLCyzbvhARgzu6L8xnQL4LbiPRDuIPJt0no3eMDO LqGYW9e+5me0XfbiyBGeNSwu3LtWWU+G/jV48= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=fLUHca0pFAQD+d4YrN8mUG9JE7ZthqM0vYHR7WGKW2o=; b=MrrAaLrYPxvdQ3wPdu46w2al8EaNQJbEjbsUHRHeRCBuwOjka/8cSwtDK4VhrcGfnD YhF7vtQ+TN2qgeINbAH6Tzx/M8gJd/GXcB456IC5qhLp6urt/E11wQJQNyZRH7FgFIHB MisPIH30CsXiy7Y3OvPa0+GhfCM8LYZJYMclfnnFHluzBUK8wo0D5opeTFlgaWJX1B4e Q+OtduBZ2i6aLAAIWhiD0p16izNvBGmEf20OXmAIWc8fX7XVxW5g19CmOWZRr/JFiVu9 oUzh2m66vEguEQ0ch2qaLGU6RndEhcuYHz0ajeJ36Xt6lOkzht0C34Z3RlMlDKIQ1EQC DcFg== X-Gm-Message-State: ALoCoQlXJIugTPoMm49QeqqUJt3fz2MIyEVMmSWpzYt79t1oYkCYGI8ujTxzerVYAAxa6N49nmXl X-Received: by 10.66.66.102 with SMTP id e6mr40060876pat.6.1416884511806; Mon, 24 Nov 2014 19:01:51 -0800 (PST) Received: from icarus.au.ibm.com ([118.211.67.205]) by mx.google.com with ESMTPSA id od9sm13588578pbb.96.2014.11.24.19.01.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Nov 2014 19:01:50 -0800 (PST) From: Joel Stanley To: skiboot@lists.ozlabs.org Date: Tue, 25 Nov 2014 13:31:38 +1030 Message-Id: <1416884498-20090-1-git-send-email-joel@jms.id.au> X-Mailer: git-send-email 2.1.0 Subject: [Skiboot] [PATCH] Add Travis configuration X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" This will allow Travis CI (https://travis-ci.org) to build the firmware and run the test suite. In the future we can also use it to run and publish the results of scan-build and lcov. Travis build environments are stuck back on 12.04, so we don't have a powerpc cross compiler as part of the archive. Instead download one from kernel.org and use that. The 'make check' tests rely on newer -Wstack-usage flags that are not present on the old version of gcc shipped with 12.04. Install 4.8 from the toolchain ppa and set it to be the system default. The tests also require valgrind, so include that in the VM environment. Signed-off-by: Joel Stanley --- .travis.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..66fc1a6 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,21 @@ +language: c + +before_install: + - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test + - sudo apt-get update -qq + - sudo apt-get install -y gcc-4.8 + - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50 + +install: + - sudo apt-get install -y valgrind + - wget https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/4.8.0/x86_64-gcc-4.8.0-nolibc_powerpc64-linux.tar.xz + - sudo mkdir /opt/cross + - sudo tar -C /opt/cross -xvf x86_64-gcc-4.8.0-nolibc_powerpc64-linux.tar.xz + +env: + global: + - CROSS=/opt/cross/gcc-4.8.0-nolibc/powerpc64-linux/bin/powerpc64-linux- + - HOSTCC=gcc-4.8 + +script: + - make && make check