Skip to content

Commit d047f9d

Browse files
committed
Merge branch 'master' into stable
2 parents 9b51314 + 0ab219b commit d047f9d

File tree

147 files changed

+51811
-1489
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+51811
-1489
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,17 @@ conf/runners
6666
conf/theme
6767
conf/conf.json
6868
conf/.htpasswd
69+
conf/deleted
6970
logs
7071
.idea
7172
temp
7273
/web
7374
web-src/node_modules
74-
web-src/package-lock.json
7575
web-src/tests/e2e/reports/
7676
web-src/selenium-debug.log
7777
web-src/chromedriver.log
7878
web-src/geckodriver.log
7979

8080
venv/
8181
/venv2/
82+
e2e_venv/

.travis.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
if: tag IS blank
22
sudo: required
3-
dist: bionic
3+
dist: focal
44
language: node_js
55
node_js:
66
- '15'
@@ -9,6 +9,10 @@ cache:
99
- web-src/node_modules
1010
addons:
1111
chrome: stable
12+
apt:
13+
update: true
14+
packages:
15+
- libu2f-udev
1216
env:
1317
global:
1418
- OWNER=${TRAVIS_REPO_SLUG%/*}
@@ -25,13 +29,13 @@ env:
2529
- PATH=$HOME/.local/bin:$PATH
2630
before_install:
2731
- sudo apt-get -y install python3-pip python3-setuptools apache2-utils python3-venv
28-
chromium-chromedriver
32+
chromium-browser chromium-chromedriver
2933
install:
30-
- sudo pip3 install -r requirements.txt
31-
- sudo pip3 install pyasn1 --upgrade
32-
- sudo pip3 install ldap3 parameterized bcrypt
33-
- sudo pip3 install requests --upgrade
34-
- sudo pip3 install awscli
34+
- pip3 install -r requirements.txt
35+
- pip3 install pyasn1 --upgrade
36+
- pip3 install ldap3 parameterized bcrypt
37+
- pip3 install requests --upgrade
38+
- pip3 install awscli
3539
- cd web-src
3640
- npm install
3741
- npm install allure-commandline --save-dev
@@ -40,7 +44,7 @@ install:
4044
- e2e_venv/bin/pip install -r src/e2e_tests/requirements.txt
4145
before_script:
4246
- cd src
43-
# - python3 -m unittest discover -s tests -p "*.py" -t .
47+
- python3 -m unittest discover -s tests -p "*.py" -t .
4448
- cd ../web-src
4549
- npm run test:unit-ci
4650
- cd ..

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ or [how to configure the server](https://github.com/bugy/script-server/wiki/Serv
3232

3333
### Server-side
3434

35-
Python 3.6 or higher with the following modules:
35+
Python 3.7 or higher with the following modules:
3636

3737
* Tornado 5 / 6
3838

@@ -69,6 +69,9 @@ For the usage please check [this ticket](https://github.com/bugy/script-server/i
6969

7070
If you are making changes to web files, use `npm run build` or `npm run serve`
7171

72+
### A issue running on OpenBSD and maybe other UNIX systems
73+
See [A issue running on OpenBSD and maybe other UNIX systems](https://github.com/bugy/script-server/wiki/OpenBSD-process-termination-issues).
74+
7275

7376
## Setup and run
7477
1. Create configurations for your scripts in *conf/runners/* folder (see [script config page](https://github.com/bugy/script-server/wiki/Script-config) for details)

conf/logging.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
"file": {
1717
"class": "logging.FileHandler",
1818
"level": "INFO",
19-
"formatter": "simple",
20-
"filename": "logs/server.log"
19+
"formatter": "simple"
2120
}
2221
},
2322
"loggers": {
File renamed without changes.
File renamed without changes.

samples/configs/destroy_world.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
"script_path": "/usr/bin/python3 ./samples/scripts/destroy_world.py",
44
"description": "This is a very dangerous script, please be careful when running. Don't forget your protective helmet.",
55
"requires_terminal": false,
6-
"output_format": "terminal"
6+
"output_format": "terminal",
7+
"preload_script": {
8+
"script": "echo 'This is a <b>preload</b> script showing some info.</br>'",
9+
"output_format": "html"
10+
}
711
}

samples/configs/included2.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"hidden": true,
3+
"parameters": [
4+
{
5+
"name": "include2_p1"
6+
},
7+
{
8+
"name": "include2_p2"
9+
}
10+
]
11+
}

samples/configs/included3.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"hidden": true,
3+
"parameters": [
4+
{
5+
"name": "include3_p1"
6+
},
7+
{
8+
"name": "include3_p2"
9+
}
10+
]
11+
}

samples/configs/mult_include.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "Multiple Include",
3+
"script_path": "/bin/bash conf/scripts/echo.sh",
4+
"description": "This script does nothing except accepting parameter from mulitple include and printing them",
5+
"parameters": [
6+
{
7+
"name": "self_param",
8+
"default": "A"
9+
}
10+
],
11+
"include": [
12+
"included.json",
13+
"included2.json",
14+
"included3.json"
15+
]
16+
}

0 commit comments

Comments
 (0)