forked from zalando/zalenium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
delivery.yaml
42 lines (37 loc) · 1.21 KB
/
delivery.yaml
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
version: "2017-09-20"
pipeline:
- id: build
type: script
commands:
- desc: Install dependencies
cmd: |
# Install Docker
curl -fsSL https://delivery.cloud.zalando.com/utils/ensure-docker | sh
# Install docker-compose
curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` > docker-compose
chmod +x docker-compose
sudo mv docker-compose /usr/local/bin
# Install Maven and JDK
apt-get update
apt-get install -y maven openjdk-8-jdk-headless
# Install docker-selenium
docker pull elgalu/selenium
- desc: Run unit tests
cmd: |
mvn clean test
- desc: Build Zalenium image
cmd: |
IMAGE="zalenium:${CDP_BUILD_VERSION}"
mvn clean package
cd target
docker build -t $IMAGE .
- desc: Build E2E test images
cmd: |
cd e2e_test
TEST_APP_IMAGE="test-app:${CDP_BUILD_VERSION}"
docker build -t $TEST_APP_IMAGE .
TEST_RUNNER_IMAGE="test-runner:${CDP_BUILD_VERSION}"
docker build -t $TEST_RUNNER_IMAGE -f tests/Dockerfile .
- desc: Run E2E test
cmd: |
docker-compose -f ./e2e_test/docker-compose.yaml up --abort-on-container-exit --timeout 30