Merge pull request #1 from tazjin/feat/travis-ci

Add Travis CI configuration
This commit is contained in:
Vincent Ambo 2019-09-02 17:17:22 +01:00 committed by GitHub
commit 4bd6d52800
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 30 additions and 4 deletions

1
.gitignore vendored
View file

@ -3,3 +3,4 @@ bazel-*
# Ignore Nix result symlinks
result
result-*

10
.travis.yml Normal file
View file

@ -0,0 +1,10 @@
language: nix
env:
- NIX_PATH="nixpkgs=${TRAVIS_BUILD_DIR}"
before_script:
- nix-env -f '<nixpkgs>' -iA cachix
- cachix use tazjin
script:
# All of my own tools are under the top-level 'tazjin' attribute
# set, this command will build all of them.
- nix-build -A tazjin | cachix push tazjin

15
README.md Normal file
View file

@ -0,0 +1,15 @@
depot
=====
[![Build Status](https://travis-ci.org/tazjin/depot.svg?branch=master)](https://travis-ci.org/tazjin/depot)
This repository is the [monorepo][] for my personal infrastructure. It is built
using [Nix][] and services are deployed on Google Cloud Platofrm using
[Nixery][].
Everything in here is MIT-licensed unless otherwise indicated in a service
subfolder.
[monorepo]: https://en.wikipedia.org/wiki/Monorepo
[Nix]: https://nixos.org/nix
[Nixery]: https://github.com/google/nixery

View file

@ -25,7 +25,7 @@ let
localPkgs = self: super: {
# Local projects should be added here:
tazjin = {
blog = import ./services/tazblog { pkgs = self; };
blog = self.callPackage ./services/tazblog {};
blog_cli = self.callPackage ./tools/blog_cli {};
gemma = self.callPackage ./services/gemma {};
};

View file

@ -2,10 +2,10 @@
#
# tazblog.nix was generated using cabal2nix.
{ pkgs ? import <nixpkgs> {} }:
{ writeShellScriptBin, haskell }:
let tazblog = pkgs.haskell.packages.ghc865.callPackage ./tazblog.nix {};
in pkgs.writeShellScriptBin "tazblog" ''
let tazblog = haskell.packages.ghc865.callPackage ./tazblog.nix {};
in writeShellScriptBin "tazblog" ''
export PORT=8000
export RESOURCE_DIR=${./static}
exec ${tazblog}/bin/tazblog