This commit is contained in:
parent
cad519009d
commit
182843fe79
|
@ -9,9 +9,6 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: /var/www/html/openstamanager
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -21,9 +18,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Creating working directory
|
|
||||||
run: sudo mkdir /var/www/html/openstamanager
|
|
||||||
|
|
||||||
- name: Startup Apache2
|
- name: Startup Apache2
|
||||||
run: sudo service apache2 start
|
run: sudo service apache2 start
|
||||||
|
|
||||||
|
@ -105,11 +99,6 @@ jobs:
|
||||||
yarn install
|
yarn install
|
||||||
npm run build-OSM
|
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
|
- name: Check out test repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
@ -126,7 +115,7 @@ jobs:
|
||||||
- name: Init test configuration
|
- name: Init test configuration
|
||||||
run: |
|
run: |
|
||||||
cd python-tests/
|
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
|
pytest Init.py
|
||||||
|
|
||||||
- name: Execute tests
|
- name: Execute tests
|
||||||
|
|
Loading…
Reference in New Issue