mirror of
https://github.com/Findus23/rebound-collisions.git
synced 2024-09-19 15:53:48 +02:00
run outside of docker
This commit is contained in:
parent
25721c4fc2
commit
44b45da0d6
1 changed files with 22 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
image: python:3.7
|
||||
image: python:3.7 # not used with shell executor
|
||||
|
||||
# Change pip's cache directory to be inside the project directory since we can
|
||||
# only cache local items.
|
||||
|
@ -28,15 +28,19 @@ before_script:
|
|||
- curl -o initcon/conditions_many.input -u gitlabci:$COLLISION_SECRETS https://lw1.at/s/astro/collision-secrets/conditions_many.input
|
||||
|
||||
mypy:
|
||||
needs: []
|
||||
tags:
|
||||
- shell
|
||||
needs: [ ]
|
||||
stage: tests
|
||||
script:
|
||||
- mypy *.py
|
||||
allow_failure: true
|
||||
|
||||
simulation_run:
|
||||
tags:
|
||||
- shell
|
||||
stage: simulation
|
||||
needs: []
|
||||
needs: [ ]
|
||||
script:
|
||||
- poetry run python water_sim.py test_simulationrun test
|
||||
artifacts:
|
||||
|
@ -45,6 +49,8 @@ simulation_run:
|
|||
expire_in: 60 days
|
||||
|
||||
visualisation:
|
||||
tags:
|
||||
- shell
|
||||
stage: visualisation
|
||||
needs:
|
||||
- simulation_run
|
||||
|
@ -53,7 +59,19 @@ visualisation:
|
|||
- poetry run python collisionhistory.py test_simulationrun
|
||||
- poetry run python collisionstats.py test_simulationrun
|
||||
- poetry run python graph.py test_simulationrun
|
||||
- poetry run python timeplot.py test_simulationrun
|
||||
|
||||
video:
|
||||
tags:
|
||||
- shell
|
||||
stage: visualisation
|
||||
needs:
|
||||
- simulation_run
|
||||
script:
|
||||
- poetry run python timeplot.py test_simulationrun --save
|
||||
artifacts:
|
||||
paths:
|
||||
- test_simulationrun.mp4
|
||||
expire_in: 30 days
|
||||
|
||||
stages:
|
||||
- tests
|
||||
|
|
Loading…
Reference in a new issue