Hi,
Here’s my gitlab-ci.yml file
image: python:3.6.5
services:
- mysql:8.0.11
variables:
MYSQL_ROOT_PASSWORD: Loknag#123
MYSQL_USER: root
cache:
paths:
- ~/.cache/pip/
before_script:
- python -V
- mysql -V
- pip install -r requirements.txt
test:
script:
- python manage.py test --keepdb --settings conf.test_settings
I am getting the below error, please help
Running with gitlab-runner 11.2.0-rc2 (1644837a)
on docker-auto-scale ed2dce3a
Using Docker executor with image python:3.6.5 ...
Starting service mysql:8.0.11 ...
Pulling docker image mysql:8.0.11 ...
Using docker image sha256:5dbe5b6313e13db9674a452938731e74e9ed2adaf13cff3078acdbedae3d4bfa for mysql:8.0.11 ...
Waiting for services to be up and running...
Pulling docker image python:3.6.5 ...
Using docker image sha256:9a58cce9b09fab822c803138dca676c24c5644ce0a3c6a78418eb05fdb3f3f5a for python:3.6.5 ...
Running on runner-ed2dce3a-project-7459534-concurrent-0 via runner-ed2dce3a-srm-1534859390-5c782392...
Cloning repository...
Cloning into '/builds/lokesh1729/smarturl-me'...
Checking out ad1f50d8 as master...
Skipping Git submodules setup
Checking cache for default...
FATAL: file does not exist
Failed to extract cache
$ python -V
Python 3.6.5
$ mysql -V
/bin/bash: line 69: mysql: command not found
ERROR: Job failed: exit code 1