From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: guix on travis-ci Date: Tue, 20 Nov 2018 11:45:44 +0200 Message-ID: <20181120094544.GB28778@macbook41> References: <20181119090141.GA6363@macbook41> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XF85m9dhOBO43t/C" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gP2bP-0000Jq-0R for guix-devel@gnu.org; Tue, 20 Nov 2018 04:45:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gP2bL-0003DQ-OW for guix-devel@gnu.org; Tue, 20 Nov 2018 04:45:50 -0500 Received: from flashner.co.il ([178.62.234.194]:59210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gP2bL-0003Cw-FT for guix-devel@gnu.org; Tue, 20 Nov 2018 04:45:47 -0500 Received: from localhost (unknown [5.102.239.133]) by flashner.co.il (Postfix) with ESMTPSA id 7EE7940049 for ; Tue, 20 Nov 2018 09:45:46 +0000 (UTC) Content-Disposition: inline In-Reply-To: <20181119090141.GA6363@macbook41> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --XF85m9dhOBO43t/C Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 19, 2018 at 11:01:41AM +0200, Efraim Flashner wrote: > I have a working Travis-CI file that I've been working on occasionally > and I wanted to share it. As-is it works, albeit subject to the normal > limitations of Travis, ie: the builds can't take too long, and > apparently you're limited to ~10000 lines of log. >=20 > I also have one for Gitlab's CI integration, but I haven't figured out > how to get the daemon and build users working nicely yet. >=20 > As far as a TODO going forward, I'd like to be able to integrate this in > with a regular .travis.yml file, where it's not Guix or nothing, and I'd > like to kick-off multiple builds for different packages in one repo > (GUIX_PACKAGE_PATH). >=20 > Also, if anyone wants to help make this script worse by figuring out how > to add the echo line to a 'curl | sudo bash' line I'd be interested ;P. >=20 >=20 > language: cpp > sudo: enabled >=20 > os: linux > sudo: required >=20 > addons: > apt: > packages: > - gnupg >=20 > install: > - wget https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-inst= all.sh > - gpg --keyserver pgp.mit.edu --recv-keys 3CE464558A84FDC69DB40CFB090= B11993D9AEBB5 > - echo -e 'y\ny' | sudo bash guix-install.sh > - guix pull --fallback --substitute-urls=3D"https://berlin.guixsd.org= https://mirror.hydra.gnu.org" >=20 > script: > - guix build --fallback --substitute-urls=3D"https://berlin.guixsd.or= g https://mirror.hydra.gnu.org" -f guix.scm >=20 > notifications: > email: false >=20 > git: > depth: 1 >=20 Here's what I've ended up with for now: language: cpp sudo: enabled os: linux addons: apt: packages: - gnupg wget grep sed env: - GUIX_SYSTEM=3Di686-linux - GUIX_SYSTEM=3Dx86_64-linux install: - wget https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-instal= l.sh - gpg --recv-keys 3CE464558A84FDC69DB40CFB090B11993D9AEBB5 - echo -e 'y\ny' | sudo bash guix-install.sh - guix pull --fallback --substitute-urls=3D"https://berlin.guixsd.org h= ttps://mirror.hydra.gnu.org" script: - guix build --no-grafts --fallback --substitute-urls=3D"https://berlin= =2Eguixsd.org https://mirror.hydra.gnu.org" -f guix.scm --system=3D$GUIX_SY= STEM notifications: email: false git: depth: 10 and for my GUIX_PACKAGE_PATH repository I have: language: cpp sudo: enabled os: linux addons: apt: packages: - gnupg wget grep sed env: - FILE=3Ddfsg/main/brendan_gregg.scm - FILE=3Ddfsg/main/confclerk.scm - FILE=3Ddfsg/main/cpuid2cpuflags.scm - FILE=3Ddfsg/main/ecrire.scm - FILE=3Ddfsg/main/equate.scm - FILE=3Ddfsg/main/evisum.scm - FILE=3Ddfsg/main/html2text.scm - FILE=3Ddfsg/main/mcron.scm - FILE=3Ddfsg/main/mpv.scm - FILE=3Ddfsg/main/mupdf.scm - FILE=3Ddfsg/main/nyancat.scm - FILE=3Ddfsg/main/pinentry-efl.scm - FILE=3Ddfsg/main/rtv.scm - FILE=3Ddfsg/main/wgetpaste.scm - FILE=3Ddfsg/main/xorriso.scm install: - wget https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-instal= l.sh - gpg --recv-keys 3CE464558A84FDC69DB40CFB090B11993D9AEBB5 - echo -e 'y\ny' | sudo bash guix-install.sh - guix pull --fallback --substitute-urls=3D"https://berlin.guixsd.org h= ttps://mirror.hydra.gnu.org" script: - GUIX_PACKAGE_PATH=3D. guix build --no-grafts --fallback --substitute-= urls=3D"https://berlin.guixsd.org https://mirror.hydra.gnu.org" $(grep defi= ne-public $FILE | cut -f2 -d' ') notifications: email: false git: depth: 10 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --XF85m9dhOBO43t/C Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlvz18IACgkQQarn3Mo9 g1HyEBAAoJCoHWrjI8Tp6bZhoXO6ecOp0/KRxG3zelqDLFlFnEXxN/fFd1yeqepP KlMl2k/PtKVQZMs8bKYFsmdh9KcQ1oBrlIupmSfgku/T0rq7t3lY8zC6NQLFoK0U r7OADjoQsjv/gYCXggyAeTa2rouuwhcBPkF5KdMS1XKGHxSeC30Z7KBbDjbyiOgl stc397BTihuUKRiNcMA8GqK694YpzVoJ1nsXwsGap48sx1ssZ52AAwIuCc+MXRXw 1iYqpoYl1CaRAdUizlOfvgZ8kCZDv/aGn2SHadVZbW6Ltgw9qwlK0vKGEGm71jsF 7MvSFupOVEoJcANaSQTVMl/Cknw4l79T/V3I5RjRs9WhvGAaQtLwX5sf+Doe3+Ph LuWRhkjVl1zGl7y84utKDkdmvyKUu7c2I7nxGiIYv3baERsP4hFNyNQPDRZRDifW WZmYKgj2aUwddCZboq6llCXKoJ9iDxbChXJQCIqVWnPYV1gxPbQ90Szp585WXAol 9Cn2MKZGJZmT2V0uav/zQBBrkDR3eOaM2QXsX4g8SEZ8e6RADDnK3L1dCouW8XKQ 637KVqeWmT7YJOmh6HvysCKLM/SmxbZJdsnaRDpvaX3oMbgyDFKLW+P12y3Ojuqr JQXRexsMFHpRnfVwl43ZpbCWbFrKQSKUUAn74xisJXHXGfTyDKA= =w63K -----END PGP SIGNATURE----- --XF85m9dhOBO43t/C--