-
Notifications
You must be signed in to change notification settings - Fork 54
/
.travis.yml
56 lines (55 loc) · 1.74 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
dist: focal
services:
- postgresql
filter_secrets: false
cache:
bundler: true
directories:
- ${HOME}/bin
env:
matrix:
- TRAVIS_JOB_BOARD_REGISTER_YML="${TRAVIS_BUILD_DIR}/.example-job-board-register-sardonyx.yml"
global:
- DPKG_MANIFEST_JSON="${TRAVIS_BUILD_DIR}/.example-dpkg-manifest.json"
- LANG=en_US.UTF-8
- NODE_ATTRIBUTES_YML="${TRAVIS_BUILD_DIR}/.example-node-attributes.yml"
- PACKER_CHEF_PREFIX="${TRAVIS_BUILD_DIR}/tmp"
- PATH="/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin:${HOME}/bin:${PATH}"
- REQUEST_INTERVAL=5
- SKIP_CHEF_REMOVAL='1'
- SPEC_ARGS='--tag ~dev'
- SPEC_RUNNER='bash -lc'
- SPEC_SUITES='travis_packer_templates'
- SYSTEM_INFO_JSON="${TRAVIS_BUILD_DIR}/.example_system_info.json"
- TRAVIS_SOURCE_AMI="ami-01eefcaf0edcc4cf0"
install:
- if [[ -f .test-branch ]]; then
export TRAVIS_COOKBOOKS_TEST_BRANCH="$(cat .test-branch 2>/dev/null)";
fi
- export GIT_DESC="$(git describe --always --dirty --tags)"
- rvm use 3.3.5 --install --binary --fuzzy
- gem install bundler:2.5.21
- bundle install --jobs=3 --retry=2 --path=vendor/bundle
- ./bin/packer-build-install
- ln -sv "${TRAVIS_BUILD_DIR}" "${TRAVIS_BUILD_DIR}/tmp/packer-chef-local"
script:
- make
- bundle exec make test
- make update-gce-images
- git diff --exit-code
- git diff --cached --exit-code
- sudo lsof | grep dpkg || true
- travis_retry bundle exec bash -xc 'sudo packer-scripts/run-serverspecs'
- for f in ~/.*_rspec.json; do
echo "checking $f";
jq . < $f &>/dev/null;
done
after_success:
- if [[ $TRAVIS_JOB_BOARD_REGISTER_YML =~ sardonyx ]]; then
git fetch --unshallow;
bundle exec make packer-build-trigger;
else
echo 'no packer-build-trigger for you';
fi
notifications:
email: false