forked from spryker/docker-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
144 lines (133 loc) · 4.72 KB
/
.travis.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
dist: bionic
sudo: required
git:
depth: 3
os: linux
language: minimal
env:
global:
- PROGRESS_TYPE=plain
cache:
timeout: 60
addons:
hosts:
- yves.de.spryker.local
- zed.de.spryker.local
- glue.de.spryker.local
apt:
packages:
- apache2-utils
- apt-transport-https
- ca-certificates
- curl
- gnupg-agent
- pigz
- software-properties-common
sources:
- sourceline: "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
key_url: https://download.docker.com/linux/ubuntu/gpg
before_install:
- echo eyAiZXhwZXJpbWVudGFsIiA6IHRydWUsICJmZWF0dXJlcyIgOiB7ICJidWlsZGtpdCI6IHRydWUgfSB9Cg==|base64 -d|sudo tee /etc/docker/daemon.json
- sudo apt-get install --only-upgrade docker-ce -y
- sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- sudo chmod +x /usr/local/bin/docker-compose
- sudo systemctl start docker
matrix:
fast_finish: true
allow_failures: []
include:
- name: Demo boot test
env: DEV_MODE=0
script:
- bash ./ci/check_boot.sh
- name: Dev boot test
env: DEV_MODE=1
script:
- bash ./ci/check_boot.sh
- name: Demo Bash syntax check
env: DEV_MODE=0
script:
- bash ./ci/check_bash_syntax.sh
- name: Demo Bash syntax check
env: DEV_MODE=1
script:
- bash ./ci/check_bash_syntax.sh
- name: Tests
script:
- bash ./ci/tests.sh
before_install: skip
before_script: skip
after_script: skip
- name: Deploy file builder tests
language: php
php: 7.4
script:
- cd generator
- composer install
- vendor/bin/codecept run
- name: Docker / B2C Demoshop / PHP-7.4 Alpine / MariaDB / Functional
env:
- SPRYKER_PLATFORM_IMAGE=spryker/php:7.4-alpine3.14
- TRAVIS=1
- APPLICATION_ENV=ci.mysql
- SPRYKER_TESTING_ENABLED=1
- APPLICATION_STORE=DE
- PROJECT=suite
script:
- cd ../ && git clone --depth=3 --branch=master https://github.com/spryker-shop/b2c-demo-shop.git demo-shop && mv docker-sdk demo-shop && cd demo-shop
- docker-sdk/sdk boot deploy.ci.functional.mariadb.yml -v
- docker-sdk/sdk up -t -v
- docker-sdk/sdk testing codecept run -c codeception.ci.functional.yml
before_script: skip
after_script: skip
- name: Docker / B2C Demoshop / PHP-7.4 Debian / PostgreSQL / Functional
env:
- SPRYKER_PLATFORM_IMAGE=spryker/php:7.4-debian
- TRAVIS=1
- APPLICATION_ENV=ci.pgsql
- SPRYKER_TESTING_ENABLED=1
- APPLICATION_STORE=DE
- PROJECT=suite
script:
- cd ../ && git clone --depth=3 --branch=master https://github.com/spryker-shop/b2c-demo-shop.git demo-shop && mv docker-sdk demo-shop && cd demo-shop
- docker-sdk/sdk boot deploy.ci.functional.yml -v
- docker-sdk/sdk up -t -v
- docker-sdk/sdk testing codecept run -c codeception.ci.functional.yml
before_script: skip
after_script: skip
- name: Docker / B2B Demoshop / PHP-7.4 Alpine / PostgreSQL / Functional
env:
- SPRYKER_PLATFORM_IMAGE=spryker/php:7.4-alpine3.15
- TRAVIS=1
- APPLICATION_ENV=ci.pgsql
- SPRYKER_TESTING_ENABLED=1
- APPLICATION_STORE=DE
- PROJECT=suite
script:
- cd ../ && git clone --depth=3 --branch=master https://github.com/spryker-shop/b2b-demo-shop.git demo-shop && mv docker-sdk demo-shop && cd demo-shop
- docker-sdk/sdk boot deploy.ci.functional.yml -v
- docker-sdk/sdk up -t -v
- docker-sdk/sdk testing codecept run -c codeception.ci.functional.yml
before_script: skip
after_script: skip
- name: Docker / B2B Demoshop / PHP-7.4 Debian / MariaDB / Functional
env:
- SPRYKER_PLATFORM_IMAGE=spryker/php:7.4-debian
- TRAVIS=1
- APPLICATION_ENV=ci.mysql
- SPRYKER_TESTING_ENABLED=1
- APPLICATION_STORE=DE
- PROJECT=suite
script:
- cd ../ && git clone --depth=3 --branch=master https://github.com/spryker-shop/b2b-demo-shop.git demo-shop && mv docker-sdk demo-shop && cd demo-shop
- docker-sdk/sdk boot deploy.ci.functional.mariadb.yml -v
- docker-sdk/sdk up -t -v
- docker-sdk/sdk testing codecept run -c codeception.ci.functional.yml
before_script: skip
after_script: skip
before_script:
- chmod +x sdk
- if [[ $DEV_MODE == 0 ]] ; then ./sdk boot ci/deploy.yml; fi
- if [[ $DEV_MODE == 1 ]] ; then ./sdk boot ci/deploy.dev.yml; fi
notifications:
email: false