Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
funkwhale
funkwhale
Commits
381aaf48
Commit
381aaf48
authored
Jun 25, 2017
by
Eliot Berriot
Browse files
Should now avoid pyc removal warnings
parent
27ff3a4c
Pipeline
#44
failed with stages
in 2 minutes and 47 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
381aaf48
...
...
@@ -7,7 +7,8 @@ stages:
test_api
:
stage
:
test
script
:
-
./api/runtests
-
docker-compose -f api/test.yml build
-
docker-compose -f api/test.yml run test
tags
:
-
dind
...
...
api/docker/Dockerfile.test
View file @
381aaf48
FROM
python
:
3.5
ENV
PYTHONUNBUFFERED
1
ENV
PYTHONDONTWRITEBYTECODE
1
# Requirements have to be pulled and installed here, otherwise caching won't work
COPY
.
/
requirements
.
apt
/
requirements
.
apt
COPY
.
/
install_os_dependencies
.
sh
/
install_os_dependencies
.
sh
RUN
bash
install_os_dependencies
.
sh
install
RUN
apt
-
get
install
py3clean
RUN
mkdir
/
requirements
COPY
.
/
requirements
/
base
.
txt
/
requirements
...
...
api/test.yml
View file @
381aaf48
test
:
dockerfile
:
docker/Dockerfile.test
build
:
.
command
:
python manage.py test
entrypoint
:
python manage.py test
volumes
:
-
.:/app
environment
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment