Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mobilizon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Mobilizon
Commits
932837f7
Commit
932837f7
authored
6 years ago
by
Thomas Citharel
Browse files
Options
Downloads
Patches
Plain Diff
Introduce CI stages (front / back), mix format runs in parallel
parent
06da0085
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
+44
-20
44 additions, 20 deletions
.gitlab-ci.yml
docker/tests/Dockerfile
+4
-1
4 additions, 1 deletion
docker/tests/Dockerfile
with
48 additions
and
21 deletions
.gitlab-ci.yml
+
44
−
20
View file @
932837f7
image
:
tcitworld/mobilizon-ci
s
ervic
es
:
-
name
:
mdillon/postgis:10
alias
:
postgres
s
tag
es
:
-
front
-
back
variables
:
MIX_ENV
:
"
test"
...
...
@@ -12,24 +12,48 @@ variables:
POSTGRES_HOST
:
postgres
GEOLITE_CITIES_PATH
:
"
/usr/share/GeoIP/GeoLite2-City.mmdb"
cache
:
paths
:
-
deps
-
_build
-
.rebar3
-
~/.mix
-
~/.hex
-
js/node_modules
js
:
stage
:
front
before_script
:
-
cd js
-
npm install
script
:
-
npm run build
after_script
:
-
cd ../
cache
:
paths
:
-
js/node_modules
artifacts
:
paths
:
-
priv/static
untracked
:
false
expire_in
:
30 days
before_script
:
-
cd js && npm install && npm run build && cd ../
-
mix local.rebar --force
-
mix local.hex --force
-
mix deps.get
-
MIX_ENV=test mix ecto.create
-
MIX_ENV=test mix ecto.migrate
elixir_format
:
stage
:
back
before_script
:
-
mix deps.get
script
:
-
mix format --check-formatted --dry-run
cache
:
paths
:
-
deps
mix
:
stage
:
back
services
:
-
name
:
mdillon/postgis:10
alias
:
postgres
dependencies
:
-
js
before_script
:
-
mix deps.get
-
MIX_ENV=test mix ecto.create
-
MIX_ENV=test mix ecto.migrate
script
:
-
mix format --check-formatted --dry-run
-
mix coveralls
-
mix coveralls
cache
:
paths
:
-
deps
-
_build
This diff is collapsed.
Click to expand it.
docker/tests/Dockerfile
+
4
−
1
View file @
932837f7
FROM
elixir:latest
LABEL
maintainer="Thomas Citharel <tcit@tcit.fr>"
ENV
REFRESHED_AT=2018-12-18
RUN
apt-get update
-yq
&&
apt-get
install
-yq
build-essential inotify-tools postgresql-client git curl gnupg
RUN
curl
-sL
https://deb.nodesource.com/setup_
8
.x | bash
&&
apt-get
install
nodejs
-yq
RUN
curl
-sL
https://deb.nodesource.com/setup_
10
.x | bash
&&
apt-get
install
nodejs
-yq
RUN
apt-get clean
&&
rm
-rf
/var/lib/apt/lists/
*
/tmp/
*
/var/tmp/
*
RUN
mix local.hex
--force
&&
mix local.rebar
--force
RUN
curl http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz
--output
GeoLite2-City.tar.gz
-s
&&
tar
zxf GeoLite2-City.tar.gz
&&
mkdir
-p
/usr/share/GeoIP
&&
mv
GeoLite2-City_
*
/GeoLite2-City.mmdb /usr/share/GeoIP/GeoLite2-City.mmdb
\ No newline at end of file
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