Mettre à jour le fichier .gitlab-ci.yml
This commit is contained in:
@@ -44,6 +44,7 @@ cache:
|
|||||||
install:
|
install:
|
||||||
stage: install
|
stage: install
|
||||||
script:
|
script:
|
||||||
|
- rm ~/.hex/cache.ets
|
||||||
- npm ci
|
- npm ci
|
||||||
- mix deps.get
|
- mix deps.get
|
||||||
- mix compile
|
- mix compile
|
||||||
@@ -95,6 +96,7 @@ build-frontend:
|
|||||||
deps:
|
deps:
|
||||||
stage: check
|
stage: check
|
||||||
before_script:
|
before_script:
|
||||||
|
- rm ~/.hex/cache.ets
|
||||||
- mix deps.get
|
- mix deps.get
|
||||||
script:
|
script:
|
||||||
- export EXITVALUE=0
|
- export EXITVALUE=0
|
||||||
@@ -122,6 +124,7 @@ exunit:
|
|||||||
variables:
|
variables:
|
||||||
MIX_ENV: test
|
MIX_ENV: test
|
||||||
before_script:
|
before_script:
|
||||||
|
- rm ~/.hex/cache.ets
|
||||||
- mix deps.get
|
- mix deps.get
|
||||||
- mix compile
|
- mix compile
|
||||||
- mix tz_world.update
|
- mix tz_world.update
|
||||||
@@ -169,6 +172,7 @@ e2e:
|
|||||||
variables:
|
variables:
|
||||||
MIX_ENV: "e2e"
|
MIX_ENV: "e2e"
|
||||||
before_script:
|
before_script:
|
||||||
|
- rm ~/.hex/cache.ets
|
||||||
- mix deps.get
|
- mix deps.get
|
||||||
- mix ecto.create
|
- mix ecto.create
|
||||||
- mix ecto.migrate
|
- mix ecto.migrate
|
||||||
@@ -194,6 +198,7 @@ e2e:
|
|||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
|
- rm ~/.hex/cache.ets
|
||||||
- mv public public-mbz
|
- mv public public-mbz
|
||||||
- mkdir public
|
- mkdir public
|
||||||
- mix deps.get
|
- mix deps.get
|
||||||
@@ -321,6 +326,7 @@ package-app:
|
|||||||
TZ: Etc/UTC
|
TZ: Etc/UTC
|
||||||
APP_ASSET: "${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME}_${ARCH}.tar.gz"
|
APP_ASSET: "${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME}_${ARCH}.tar.gz"
|
||||||
script: &release-script
|
script: &release-script
|
||||||
|
- rm ~/.hex/cache.ets
|
||||||
- mix local.hex --force
|
- mix local.hex --force
|
||||||
- mix local.rebar --force
|
- mix local.rebar --force
|
||||||
- mix deps.clean --all # To avoid reusing native deps, such as lexbor being already built against another environment
|
- mix deps.clean --all # To avoid reusing native deps, such as lexbor being already built against another environment
|
||||||
|
|||||||
Reference in New Issue
Block a user