-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
40 lines (33 loc) · 1.17 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
env:
global:
- PACKER_VERSION=1.0.0
- TERRAFORM_VERSION=0.9.8
- TOOLS_DIR=$HOME/tools
- PACKER_TEMPLATE=packer_apache_php.json
- PACKER_VARS=vars/travis.json
- STATE_BUCKET=tfstates
- STATE_KEY=demo/frontends
- AWS_DEFAULT_REGION=eu-west-1
- secure: a6Cll+xqEJ8occt5j76FhNgpgHzP6rp3GC4SQTq2UQd0aIEl/Xd7N0ChmGHwiUr3ehKchVdecI9Fy0KcEe9f8p96KlxiOkgLafS4CdAgY2+lNvu6VZdNLzWstGfBTXOZDJ2MedwTz2omVrKvEZNE5r4bz7ZelKtece8Jbg3gVNA=
- secure: F64+IuxUPz+dQCn4j/i84RxIuGCOS4C0XTQdxmzEHsEhB/3MyZ2jpI1ZDJBCJHQPcMEiOK5sSSxGD4M3Mab/HdVUELJV32qOsDw7ZYtr3zUevLOAtzh78M5M0vxatmlfZy6xy4v/p0iehaS3Zo82cQY1Ndepx+tutFnLGbHG+QA=
dist: trusty
language: php
php:
- '5.6'
before_install:
- composer self-update
script:
- php -l site/index.php
- export COMMIT_SUBJECT="$(git log --format=%s --no-merges -n 1)"
before_deploy:
- export PATH=$PATH:$TOOLS_DIR/bin
- scripts/install_packer.sh
- scripts/install_terraform.sh
# - pip install --user awscli
deploy:
provider: script
script:
- scripts/pack_and_deploy.sh $TRAVIS_BUILD_DIR $PACKER_VARS $PACKER_TEMPLATE $TRAVIS_COMMIT $STATE_BUCKET $STATE_KEY
on:
branch: master
condition: "$COMMIT_SUBJECT != *\"[no deploy]\"*"