Skip to content

Commit 87fa43f

Browse files
authored
Add nixOS test script (#254)
Signed-off-by: Ryan Hill <[email protected]>
1 parent 4293019 commit 87fa43f

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ celerybeat.pid
132132
# SageMath parsed files
133133
*.sage.py
134134

135+
# Ansible tests
136+
.ansible
137+
135138
# Environments
136139
.env
137140
.venv

.test.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# -*- coding: utf-8 -*-
2+
3+
# Copyright 2024 Cloudera, Inc. All Rights Reserved.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
#! /usr/bin/env nix-shell
19+
#! nix-shell -i bash -p bash
20+
mkdir -p .ansible/collections/ansible_collections/cloudera/cluster
21+
git archive $(git rev-parse --abbrev-ref HEAD) | tar -x -C .ansible/collections/ansible_collections/cloudera/cluster
22+
(cd .ansible/collections/ansible_collections/cloudera/cluster && pytest)
23+

0 commit comments

Comments
 (0)