forked from till/easybib-cookbooks
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
51 lines (44 loc) · 976 Bytes
/
.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
language: ruby
sudo: false
cache: bundler
script:
- bundle exec rake
- make berkshelf
gemfile:
- gemfiles/chef_11.10.gemfile
- gemfiles/chef_12.7.gemfile
before_deploy:
- tar cfz easybib-cookbooks.tar.gz * --exclude=easybib-cookbooks.tar.gz --exclude=vendor/
- mkdir build
- mv easybib-cookbooks.tar.gz build/
- bash MoveBerkshelfArtifacts.sh
deploy:
- provider: s3
access_key_id: $ACCESS_KEY_ID
secret_access_key: $SECRET_ACCESS_KEY
bucket: $BUCKET
skip-cleanup: true
local-dir: build
upload-dir: stable-11-10
detect_encoding: true
on:
branch: stable-chef-11.10
- provider: s3
access_key_id: $ACCESS_KEY_ID
secret_access_key: $SECRET_ACCESS_KEY
bucket: $BUCKET
skip-cleanup: true
local-dir: build
upload-dir: master
detect_encoding: true
on:
branch: master
branches:
only:
- master
- stable-chef-11.10
- stable
notifications:
email:
on_success: never
on_failure: always