diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4a10a92e0d091afc9038707ae248c6a134344767..577d8b7997480e2b780c543d9e533aaeed50d6c6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,15 +4,16 @@ stages:
 
 test_api:
   stage: test
+  image: funkwhale/funkwhale:base
   before_script:
-    - docker-compose -f api/test.yml build
+    - cd api
+    - pip install -r requirements/test.txt
   script:
-    - docker-compose -f api/test.yml run test
-  after_script:
-    - docker-compose -f api/test.yml run test rm -rf funkwhale_api/media/
+    - export DJANGO_SETTINGS_MODULE=config.settings.test
+    - python manage.py test
 
   tags:
-    - dind
+    - docker
 
 build_front:
   stage: build
@@ -53,6 +54,6 @@ pages:
     paths:
       - public
   only:
-    - master
+    - develop
   tags:
     - docker