Do not set default before_script in GitLab CI
The existing set of commands for before_script make only sense for
executing the unit tests.
@@ -12,6 +12,8 @@ stages:
- test
- deploy
+.unit-tests: &unit-tests
+ stage: test
before_script:
# Create user, we do not want to test as root
- adduser --disabled-login --gecos "" $PRIMARY_USER
@@ -24,9 +26,6 @@ before_script:
- sudo -u $PRIMARY_USER pip install --user .
# Start lxcfs
- lxcfs /var/lib/lxcfs &
-
-.unit-tests: &unit-tests
- stage: test
script:
- sudo -u $PRIMARY_USER
COVERAGE_PROCESS_START=.coveragerc
