forked from docksal/docksal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (39 loc) · 1.35 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
dist: bionic
language: minimal
env:
global:
# Explicitly disable host's SSH agent usage
# TODO: Add test coverage for both ssh-agent modes (built-in and host ssh-agent)
- DOCKSAL_SSH_AGENT_USE_HOST=0
matrix:
#- SUITE=quicktest # Uncomment to run
- SUITE=project
- SUITE=config
- SUITE=db
- SUITE=system
- SUITE=commands
#- SUITE=acquia
#- SUITE=pantheon
#- SUITE=platform
#- SUITE=drush
#- SUITE=wp
install:
- echo "${SSH_KEY}" | base64 --decode > $HOME/.ssh/project_key
- chmod 400 $HOME/.ssh/project_key
- git clone https://github.com/docksal/bats.git tests/scripts/bats
- cd tests/scripts/bats
- sudo ./install.sh /usr/local
- cd "$TRAVIS_BUILD_DIR"
- sudo cp ./bin/fin /usr/local/bin/fin
- fin version
- USE_BRANCH="${TRAVIS_BRANCH}"
- if [[ "$TRAVIS_PULL_REQUEST" != "false" && "${TRAVIS_PULL_REQUEST_SLUG}" == "${TRAVIS_REPO_SLUG}" ]]; then USE_BRANCH="${TRAVIS_PULL_REQUEST_BRANCH}"; fi
- if [[ "$TRAVIS_PULL_REQUEST" != "false" && "${TRAVIS_PULL_REQUEST_SLUG}" != "${TRAVIS_REPO_SLUG}" ]]; then USE_BRANCH='develop'; fi
- export DOCKSAL_VERSION=${USE_BRANCH}
- fin update
- fin sysinfo
script:
- tests/scripts/${SUITE}.sh
after_success:
# Trigger boilerplate repo builds to verify nothing breaks there
- if [[ "${SUITE}" == "project" ]]; then tests/scripts/boilerplates.sh; fi