This repository has been archived by the owner on Aug 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
100 lines (97 loc) · 2.62 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
language: node_js
node_js:
- "8.9"
services:
- postgresql
jobs:
include:
- stage: test-app-waf
install:
- npm --prefix app/waf install
before_script:
- export PG_HOST=localhost
script:
- npm --prefix app/waf test
- npm --prefix app/waf run coverage
- npm --prefix app/waf run coveralls
deploy:
provider: script
on:
branch: master
skip_cleanup: true
script:
- scripts/publish_api_ref.sh
- stage: fvt
if: TRAVIS_EVENT_TYPE = cron
before_script:
- pushd test/vpn
- ./vpn_install.sh
- ./vpn_connect.sh
- popd
script:
- pushd test/Auto
- export name=`openssl rand -base64 8`
- ./auto_test.sh
after_success:
- ./auto_clean.sh
- stage: publish-image-and-docs
language: python
sudo: required
env:
- PKG_RELEASE="f5-adcaas-openstack-$(git describe --tags --abbrev=0).tar.gz"
before_install:
- docker pull f5devcentral/containthedocs:latest
install:
- pip install awscli --upgrade
script:
# Rebuild document
- pushd docs
- ./docker-docs.sh ./test-docs.sh
- popd
# Build release package
- pushd scripts
- ./build_dist.sh
- popd
- tar cvzf ${PKG_RELEASE} dist
- cp ${PKG_RELEASE} dist
deploy:
# RELEASE ADCAAS
- provider: releases
api_key:
secure: $GITHUB_TOKEN
file:
- ${PKG_RELEASE}
skip_cleanup: true
overwrite: true
on:
repo: F5Networks/f5-adcaas-openstack
tags: true
# Deploy image to Docker Hub
- provider: script
script: scripts/publish_image.sh
on:
tags: true
# DEPLOY DOCS TO STAGING
- provider: s3
skip_cleanup: true
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: $AWS_S3_STAGING
local_dir: docs/_build/html
upload_dir: $AWS_DIR
on:
branch: master
repo: F5Networks/f5-adcaas-openstack
# DEPLOY DOCS TO PRODUCTION
- provider: s3
skip_cleanup: true
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: $AWS_S3_BUCKET
local_dir: docs/_build/html
upload_dir: $AWS_DIR
on:
branch: master
repo: F5Networks/f5-adcaas-openstack
after_deploy:
- aws cloudfront create-invalidation --distribution-id $AWS_DIST_ID --paths $AWS_DIR