Merge pull request #1 from tazjin/feat/travis-ci
Add Travis CI configuration
This commit is contained in:
commit
4bd6d52800
5 changed files with 30 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,3 +3,4 @@ bazel-*
|
|||
|
||||
# Ignore Nix result symlinks
|
||||
result
|
||||
result-*
|
||||
|
|
10
.travis.yml
Normal file
10
.travis.yml
Normal 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
15
README.md
Normal 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
|
|
@ -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 {};
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue