forked from F5Networks/f5-adcaas-openstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a73b591
commit ae40831
Showing
2 changed files
with
27 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,23 @@ | ||
language: node_js | ||
env: | ||
global: | ||
- DIST_REPO="dist" | ||
|
||
script: | ||
- scripts/build_dist.sh | ||
- tar cvzf abc.tar.gz dist | ||
- cp abc.tar.gz dist/ | ||
deploy: | ||
- provider: releases | ||
api_key: | ||
secure: "$mytoken" | ||
file: | ||
- abc.tar.gz | ||
skip_cleanup: true | ||
overwrite: true | ||
on: | ||
repo: Niklaus-xie/f5-adcaas-openstack | ||
tags: true | ||
|
||
|
||
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 | ||
before_install: | ||
- docker pull f5devcentral/containthedocs:latest | ||
install: | ||
- pip install awscli --upgrade | ||
script: | ||
# Rebuild document | ||
- pushd docs | ||
- ./docker-docs.sh ./test-docs.sh | ||
- popd | ||
deploy: | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters