This commit is contained in:
parent
cad519009d
commit
182843fe79
|
@ -9,9 +9,6 @@ on:
|
|||
jobs:
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: /var/www/html/openstamanager
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
|
@ -21,9 +18,6 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Creating working directory
|
||||
run: sudo mkdir /var/www/html/openstamanager
|
||||
|
||||
- name: Startup Apache2
|
||||
run: sudo service apache2 start
|
||||
|
||||
|
@ -105,11 +99,6 @@ jobs:
|
|||
yarn install
|
||||
npm run build-OSM
|
||||
|
||||
- name: Move OSM to apache directory
|
||||
run: |
|
||||
sudo mv ../openstamanager /var/www/html/openstamanager
|
||||
sudo chmod -R 0777 /var/www/html/openstamanager
|
||||
|
||||
- name: Check out test repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
|
@ -126,7 +115,7 @@ jobs:
|
|||
- name: Init test configuration
|
||||
run: |
|
||||
cd python-tests/
|
||||
echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"user\": \"root\",\n \"pass\": \"root\",\n \"name\": \"osm\"\n },\n \"server\": \"http://localhost/openstamanager\",\n \"browser\": \"firefox\",\n \"headless\": true\n}" > config.json
|
||||
echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"user\": \"root\",\n \"pass\": \"root\",\n \"name\": \"osm\"\n },\n \"server\": \"http://localhost/\",\n \"browser\": \"firefox\",\n \"headless\": true\n}" > config.json
|
||||
pytest Init.py
|
||||
|
||||
- name: Execute tests
|
||||
|
|
Loading…
Reference in New Issue