forked from acquia/blt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
acquia-pipelines.yml
48 lines (43 loc) · 1.77 KB
/
acquia-pipelines.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
# This is not the acquia-pipelines file that will be used for projects generated via BLT.
# This file will create a sample BLT project against which to test. It uses the same logic as the child project's
# acquia-pipelines.yml file wherever possible.
version: 1.1.0
services:
- mysql
variables:
global:
COMPOSER_BIN: $BUILD_DIR/vendor/bin
BLT_DIR: $BUILD_DIR
IS_PULL_REQUEST: true
PATH: $COMPOSER_BIN:$PATH
events:
build:
steps:
# Install global packages and set global configuration.
- setup-environment:
type: script
script:
- composer validate --no-check-all --ansi
- composer install
- source $BLT_DIR/scripts/pipelines/setup_environment
- source $BLT_DIR/scripts/pipelines/setup_project
# Execute all testing and validation tasks.
- run-tests:
type: script
script:
# Create a sample, BLT-generated project against which to test.
- source ${BLT_DIR}/scripts/blt/ci/internal/smoke_tests.sh
# Create a sample, BLT-generated project against which to test.
- source ${BLT_DIR}/scripts/blt/ci/internal/create_blt_project.sh
# Execute tests against sample project.
- source ${BLT_DIR}/scripts/pipelines/run_tests
# Make BLT doctor happy.
- source ${BLT_DIR}/scripts/blt/ci/internal/doctor.sh
- phpunit ${BLT_DIR}/tests/phpunit --group blted8
# Generate artifact.
- build-artifact:
type: script
script:
# Build the artifact.
- source ${BLT_DIR}/scripts/pipelines/build_artifact
- source ${BLT_DIR}/scripts/blt/ci/internal/test_artifact.sh