]> WPIA git - motion.git/commitdiff
Merge branch 'fix_typo' into 'master'
authorFelix Dörre <felix@dogcraft.de>
Mon, 5 Oct 2020 12:24:39 +0000 (14:24 +0200)
committerFelix Dörre <felix@dogcraft.de>
Mon, 5 Oct 2020 12:24:39 +0000 (14:24 +0200)
fix: add missing colon in text

See merge request felixdoerre/motion!20

1  2 
README.md

diff --combined README.md
index c41874a73c738eef688a1cd27ef1c7e42faafcfc,fa02a3b55dff59ab9d35c2f35a0b54a5f831f4fd..e06c09e865173400a41156b66c1d2ea491c9761c
+++ b/README.md
@@@ -9,7 -9,7 +9,7 @@@ virtualenv -p python3 
  . bin/activate
  pip install -r requirements.txt
  ```
 -Then edit config.py.example into config.py with your database connection
 +Then edit config.py.example into config.py with your database connection and web site settings
  
  ## Development and debug
  
@@@ -49,7 -49,7 +49,7 @@@ To grant right use the following (here 
  
  Within the motion content markdown can be used for formatting e.g. 
  * To add a line break add two lines
- * to enter a link use `[text](https//domain.tld/link)`
+ * to enter a link use `[text](https://domain.tld/link)`
  
  ## Settings for nginx
  
@@@ -103,79 -103,3 +103,79 @@@ fastcgi_param USER_ROLES $motion_user_r
  fastcgi_pass unix:/motion-socket/motion.fcgi;
  }
  ```
 +
 +# Configuration for a Jenkins Freestyle Project
 +
 +## Preconditions for Jenkins system
 +
 +* Python 3 installed with:
 +
 +  python3 virtualenv python3-pip
 +
 +* PostgreSQL server installed with motion database and database user
 +
 +
 +## Add freestyle project
 +
 +### Source-Code-Management
 +
 +Adjust Git settings
 +
 +### Build Environment
 +
 +Add Bindings
 +
 +Add Username and password (separated)
 +
 +Enter username (DB_USER) and password (DB_PW) according to database credentials
 +
 +### Build
 +
 +Add build step shell
 +
 +Add the command
 +
 +```
 +rm -rf env
 +virtualenv -p python3 env
 +. env/bin/activate
 +pip3 install -r requirements.txt
 +
 +
 +cat > config.py << EOF
 +DATABASE="pq://IP-ADDRESS/motion"
 +USER="${DB_USER}"
 +PASSWORD="${DB_PW}"
 +EOF
 +
 +python3 jenkins_job.py
 +```
 +
 +If an IPv6 address is used the following needs to be added to the script to fix a bug of the IPv6 literal translation:
 +(https://github.com/python-postgres/fe/issues/104)
 +
 +```
 +patch env/lib/python3*/site-packages/postgresql/versionstring.py <<EOF
 +diff --git a/postgresql/versionstring.py b/postgresql/versionstring.py
 +index ccb3953..2503013 100644
 +--- a/postgresql/versionstring.py
 ++++ b/postgresql/versionstring.py
 +@@ -15,7 +15,7 @@ def split(vstr : str) -> (
 +    Split a PostgreSQL version string into a tuple
 +    (major,minor,patch,...,state_class,state_level)
 +    """
 +-   v = vstr.strip().split('.')
 ++   v = vstr.strip().split(' ')[0].split('.')
 + 
 +    # Get rid of the numbers around the state_class (beta,a,dev,alpha, etc)
 +    state_class = v[-1].strip('0123456789')
 +EOF
 +```
 +
 +### Post build actions
 +
 +Add Publish JUnit test result report - test report XMLs
 +
 +```
 +python_tests_xml/*
 +```