-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
56 lines (46 loc) · 1.39 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
language: php
php:
- 5.6
#Before environment runs
before_script:
- composer self-update
- composer install --prefer-source --no-interaction --dev
script: cd .
matrix:
allow_failures:
- php: 5.6
branches:
only:
- develop
sudo: false
install: true
before_deploy:
- pwd
- cd /home/travis/build/airavata-courses/spring17-laravel-portal/
- zip -r spring17-laravel-portal.zip app bootstrap config database public resources routes storage tests scripts server.php package.json composer.json composer.lock gulpfile.js phpunit.xml artisan appspec.yml LICENSE || true
- mkdir -p "dpl_cd_upload"
- mv spring17-laravel-portal.zip dpl_cd_upload/spring17-laravel-portal.zip || true
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY # declared in Travis repo settings
secret_access_key: $AWS_SECRET_KEY
bucket: laravel-portal-bucket
local_dir: dpl_cd_upload
region: us-west-2
skip_cleanup: true
acl: public_read
detect_encoding: true
on:
branch: develop
- provider: codedeploy
access_key_id: $AWS_ACCESS_KEY # declared in Travis repo settings
secret_access_key: $AWS_SECRET_KEY
bucket: laravel-portal-bucket
key: spring17-laravel-portal.zip
bundle_type: zip
application: laravel-portal-application
deployment_group: laravel-portal-group
region: us-west-2
skip_cleanup: true
on:
branch: develop