-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·26 lines (20 loc) · 736 Bytes
/
test.sh
File metadata and controls
executable file
·26 lines (20 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# SPDX-FileCopyrightText: 2018 German Aerospace Center (DLR)
# SPDX-License-Identifier: MIT
# Exit when any command fails
set -e
# Install required dependencies
pip install -r requirements.txt
echo "Successfully installed required packages"
# Check the code using the flake8 linter
flake8 --max-line-length 120 astronaut-analysis.py
# Check that copyright and license information for all files is available
reuse --root ../ lint
# Check that the script is basically working and creating the same results
python astronaut-analysis.py
test -f boxplot.png
test -f combined_histogram.png
test -f female_humans_in_space.png
test -f humans_in_space.png
test -f male_humans_in_space.png
echo "Successfully created the plots"