kapsikkum-unmanic – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | #!/bin/bash |
2 | # -*- coding: utf-8 -*- |
||
3 | ################################################################################################### |
||
4 | # |
||
5 | # Written by: Josh.5 <jsunnex@gmail.com> |
||
6 | # Date: Thu Jan 07 2019, (17:52:42 PM) |
||
7 | # |
||
8 | # Copyright: |
||
9 | # Copyright (C) Josh Sunnex - All Rights Reserved |
||
10 | # |
||
11 | # Permission is hereby granted, free of charge, to any person obtaining a copy |
||
12 | # of this software and associated documentation files (the "Software"), to deal |
||
13 | # in the Software without restriction, including without limitation the rights |
||
14 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||
15 | # copies of the Software, and to permit persons to whom the Software is |
||
16 | # furnished to do so, subject to the following conditions: |
||
17 | # |
||
18 | # The above copyright notice and this permission notice shall be included in all |
||
19 | # copies or substantial portions of the Software. |
||
20 | # |
||
21 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
||
22 | # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
||
23 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
||
24 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
||
25 | # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR |
||
26 | # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE |
||
27 | # OR OTHER DEALINGS IN THE SOFTWARE. |
||
28 | # |
||
29 | # |
||
30 | ################################################################################################### |
||
31 | |||
32 | # This script is to setup a series of tests for the application |
||
33 | |||
34 | |||
35 | SCRIPT_PATH=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ); |
||
36 | PROJECT_BASE=$(realpath ${SCRIPT_PATH}/../../); |
||
37 | |||
38 | |||
39 | source "${SCRIPT_PATH}/download_test_files.sh" |
||
40 | |||
41 | |||
42 | ### FUNCTIONS |
||
43 | # Install script dependencies: |
||
44 | setup_script_dependencies() { |
||
45 | TO_INSTALL=""; |
||
46 | [[ ! -x $(command -v curl) ]] && TO_INSTALL="${TO_INSTALL} curl"; |
||
47 | if [[ "${TO_INSTALL}" != "" ]]; then |
||
48 | echo "Missing dependencies - ${TO_INSTALL}"; |
||
49 | exit 0; |
||
50 | fi |
||
51 | python3 -m pip install --user --upgrade -r ${PROJECT_BASE}/requirements-dev.txt |
||
52 | python3 -m pip install --user --upgrade -r ${PROJECT_BASE}/requirements.txt |
||
53 | } |
||
54 | |||
55 | |||
56 | ### RUN |
||
57 | setup_script_dependencies |