install:
- nix-env -i python2.7-ansible
- nix-env -i python2.7-ansible-lint
+ - nix-env -if ./dhall-1.18.nix
# Check ansible version
- ansible --version
# Basic role syntax check
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
- ansible-lint .
+ - scripts/dhall_check.sh
notifications:
slack: fretlink:pTIylIN7zkwRFuL3aHERmsbB
--- /dev/null
+{ pkgs ? import <nixpkgs> {} }: with pkgs;
+
+stdenv.mkDerivation rec {
+ name = "dhall-${version}";
+ version = "1.18.0";
+ phases = [ "installPhase "];
+ src = fetchurl {
+ url = "https://github.com/dhall-lang/dhall-haskell/releases/download/${version}/dhall-${version}-x86_64-linux.tar.bz2";
+ sha256 = "0jvw6ss96xifb21mzpvfjzvaffcnpj0jhpc4rd36cl2r22800qgx";
+ };
+ installPhase = ''
+ mkdir -p $out/bin
+ tar -xjf $src
+ mv bin/dhall $out/bin/
+ '';
+}
in λ(vault : Vault)
→ λ(app : Text)
→ λ(entryPoint : Text)
+ → λ(metrics : Bool)
→ λ(syslogServer : Optional Text)
→ λ(domain : Optional Text)
→ λ(tasksFile : Optional Text)
, clever_entry_point =
entryPoint
, clever_metrics =
- True
+ metrics
, clever_addons =
addons
, clever_env =
for file in $(find -type f -name "*.dhall"); do
pushd $(dirname $file);
cat $(basename $file) | dhall --explain resolve > /dev/null;
+ echo "Typechecking ${file}"
if [ "$?" -ne "0" ]; then
echo "Failed to resolve $file"
ERROR=1;