-
Notifications
You must be signed in to change notification settings - Fork 6
/
.gitlab-ci.yml
executable file
·61 lines (58 loc) · 2.29 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
image: $REGISTRY_CI/gitlab-ci-base:buster
stages:
- build-test
- test
build-test:
stage: build-test
image:
name: gcr.io/kaniko-project/executor:v1.6.0-debug
script:
- /kaniko/executor
--cache=true
--context "dir://${CI_PROJECT_DIR}"
--dockerfile "./bin/docker/images/mirakl/Dockerfile"
--destination "$CI_REGISTRY/test-jobs-${DOCKER_STACK}-${DOCKER_SERVICE}_web:${CI_COMMIT_REF_SLUG}"
allow_failure: false
tags:
- small
test:
services:
- name: $CI_REGISTRY/test-jobs-${DOCKER_STACK}-${DOCKER_SERVICE}_web:${CI_COMMIT_REF_SLUG}
alias: mirakl
- name: mysql:5.7
alias: database
stage: test
tags:
- small
variables:
MIRAKL_CONNECTOR_ACCOUNT_OPERATOR_EMAIL: $MIRAKL_CONNECTOR_ACCOUNT_OPERATOR_EMAIL
MIRAKL_CONNECTOR_ACCOUNT_OPERATOR_HIPAY_ID: $MIRAKL_CONNECTOR_ACCOUNT_OPERATOR_HIPAY_ID
MIRAKL_CONNECTOR_ACCOUNT_TECHNICAL_EMAIL: $MIRAKL_CONNECTOR_ACCOUNT_TECHNICAL_EMAIL
MIRAKL_CONNECTOR_ACCOUNT_TECHNICAL_HIPAY_ID: $MIRAKL_CONNECTOR_ACCOUNT_TECHNICAL_HIPAY_ID
MIRAKL_CONNECTOR_HIPAY_BASE_SOAP_URL: $MIRAKL_CONNECTOR_HIPAY_BASE_SOAP_URL
MIRAKL_CONNECTOR_HIPAY_ENTITY: $MIRAKL_CONNECTOR_HIPAY_ENTITY
MIRAKL_CONNECTOR_HIPAY_MERCHANT_GROUP_ID: $MIRAKL_CONNECTOR_HIPAY_MERCHANT_GROUP_ID
MIRAKL_CONNECTOR_HIPAY_WS_LOGIN: $MIRAKL_CONNECTOR_HIPAY_WS_LOGIN
MIRAKL_CONNECTOR_HIPAY_WS_PASSWORD: $MIRAKL_CONNECTOR_HIPAY_WS_PASSWORD
MIRAKL_CONNECTOR_MIRAKL_BASE_URL: $MIRAKL_CONNECTOR_MIRAKL_BASE_URL
MIRAKL_CONNECTOR_MIRAKL_FRONT_KEY: $MIRAKL_CONNECTOR_MIRAKL_FRONT_KEY
MIRAKL_CONNECTOR_MIRAKL_OPERATOR_KEY: $MIRAKL_CONNECTOR_MIRAKL_OPERATOR_KEY
MIRAKL_CONNECTOR_MIRAKL_SHOP_KEY: $MIRAKL_CONNECTOR_MIRAKL_SHOP_KEY
MIRAKL_CONNECTOR_HIPAY_BASE_REST_URL: $MIRAKL_CONNECTOR_HIPAY_BASE_REST_URL
GITHUB_TOKEN: $GITHUB_TOKEN
MIRAKL_CONNECTOR_MIRAKL_DB_HOST: database
ENV: test
MYSQL_ROOT_PASSWORD: 123456
MYSQL_USER: dev
MYSQL_PASSWORD: 123456
MYSQL_DATABASE: app
script:
- npm install yamljs
- export OPENSSL_CONF=/etc/ssl/
- curl --retry 30 --retry-delay 5 --retry-connrefused --output /dev/null http://mirakl/web/index.php
- sh bin/tests/casper_run_circle.sh http:\/\/mirakl/web/index.php
allow_failure: false
artifacts:
paths:
- bin/tests/errors
when: always