forked from TIBCOSoftware/mashling-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
60 lines (53 loc) · 1.53 KB
/
.travis.yml
File metadata and controls
60 lines (53 loc) · 1.53 KB
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
57
58
59
60
sudo: required
language :
- go
before_install:
- "echo -e \"machine github.com\n login ${GITHUB_USER_TOKEN}\" >> ~/.netrc"
os:
- linux
branches:
only:
- master
- /^v\d+\.\d+\.\d+(\.\d+)?(-\S*)?$/
install:
- go get github.com/constabulary/gb/...
- go get -u github.com/tools/godep/...
- cd $GOPATH/src/github.com/TIBCOSoftware
- git clone https://github.com/TIBCOSoftware/mashling.git mashling
- git clone https://github.com/TIBCOSoftware/mashling-cicd.git mashling-cicd
- cp -r $GOPATH/src/github.com/TIBCOSoftware/mashling-cicd/dependency-config/* $GOPATH/src/github.com/TIBCOSoftware/mashling
- cd mashling
- godep restore
- go install ./...
- mashling help
script:
- cd $GOPATH/src/github.com/TIBCOSoftware
- pushd mashling-cicd/sample-recipes
- rm -rf builds
- mkdir -p master-builds/latest builds/latest
- chmod ugo+x ./build-recipes.sh ./build-registry-recipes.sh
- ./build-registry-recipes.sh
- popd
after_script:
- "[ -f \"${HOME}/.netrc\" ] && rm -f ${HOME}/.netrc"
deploy:
provider: s3
access_key_id: $SITE_KEY
secret_access_key: $SITE_KEY_SECRET
bucket: $AWS_BUCKET
region: $AWS_REGION
skip_cleanup: true
on:
all_branches: true
local_dir: $GOPATH/src/github.com/TIBCOSoftware/mashling-cicd/sample-recipes/master-builds
upload-dir: master-builds
notifications:
email:
on_failure: always
on_success: always
recipients:
- rpolishe@tibco.com
- lmekala@tibco.com
- nthota@tibco.com
- ykalidin@tibco.com
- jpark@tibco.com