Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mehraban
funkwhale
Commits
cb2238c5
Verified
Commit
cb2238c5
authored
7 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Should now run frontend tests on gitlab
parent
f7d876ae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+32
-11
32 additions, 11 deletions
.gitlab-ci.yml
front/Dockerfile
+3
-3
3 additions, 3 deletions
front/Dockerfile
with
35 additions
and
14 deletions
.gitlab-ci.yml
+
32
−
11
View file @
cb2238c5
...
...
@@ -2,7 +2,7 @@ variables:
IMAGE_NAME
:
funkwhale/funkwhale
IMAGE
:
$IMAGE_NAME:$CI_COMMIT_REF_NAME
IMAGE_LATEST
:
$IMAGE_NAME:latest
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/pip-cache"
stages
:
...
...
@@ -14,40 +14,61 @@ test_api:
services
:
-
postgres:9.4
stage
:
test
image
:
funkwhale/funkwhale:base
image
:
funkwhale/funkwhale:latest
cache
:
key
:
"
$CI_PROJECT_ID/pip_cache"
paths
:
-
"
$PIP_CACHE_DIR"
variables
:
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/pip-cache"
DATABASE_URL
:
"
postgresql://postgres@postgres/postgres"
before_script
:
-
python3 -m venv --copies virtualenv
-
source virtualenv/bin/activate
-
cd api
-
pip install -r requirements/base.txt
-
pip install -r requirements/local.txt
-
pip install -r requirements/test.txt
script
:
-
pytest
tags
:
-
docker
test_front
:
stage
:
test
image
:
node:9
before_script
:
-
cd front
script
:
-
yarn install
-
yarn run unit
cache
:
key
:
"
$CI_
JOB_NAME-$CI_COMMIT_REF_NAME
"
key
:
"
$CI_
PROJECT_ID/front_dependencies
"
paths
:
-
"
$CI_PROJECT_DIR/pip-cache"
-
front/node_modules
-
front/yarn.lock
artifacts
:
name
:
"
front_${CI_COMMIT_REF_NAME}"
paths
:
-
front/dist/
tags
:
-
docker
build_front
:
stage
:
build
image
:
node:
6-alpine
image
:
node:
9
before_script
:
-
cd front
script
:
-
npm
install
-
npm
run build
-
yarn
install
-
yarn
run build
cache
:
key
:
"
$CI_
COMMIT_REF_NAME
"
key
:
"
$CI_
PROJECT_ID/front_dependencies
"
paths
:
-
front/node_modules
-
front/yarn.lock
artifacts
:
name
:
"
front_${CI_COMMIT_REF_NAME}"
paths
:
...
...
This diff is collapsed.
Click to expand it.
front/Dockerfile
+
3
−
3
View file @
cb2238c5
FROM
node:
6
FROM
node:
9
EXPOSE
8080
WORKDIR
/app/
ADD
package.json .
RUN
npm
install
--only
=
production
RUN
npm
install
--only
=
dev
RUN
yarn
install
--only
=
production
RUN
yarn
install
--only
=
dev
VOLUME
["/app/node_modules"]
COPY
. .
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment