-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setting up travis to deploy securely to docs website
- Loading branch information
1 parent
ac468f1
commit 7567737
Showing
7 changed files
with
41 additions
and
28 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,32 +1,38 @@ | ||
os: | ||
- linux | ||
- linux | ||
dist: | ||
- xenial | ||
- xenial | ||
language: node_js | ||
node_js: | ||
- "10" | ||
- '10' | ||
before_install: | ||
- sudo add-apt-repository ppa:longsleep/golang-backports -y | ||
- sudo apt-get update | ||
- sudo apt-get install -y golang-go | ||
- sudo apt-get install -y libev-dev | ||
- go env | grep GOPATH > gopath.env | ||
- source gopath.env | ||
- export PATH=$PATH:$GOPATH/bin | ||
- go get -u github.com/tsenart/vegeta | ||
- npm install -g esy | ||
- openssl aes-256-cbc -K $encrypted_dfdcfd5172af_key -iv $encrypted_dfdcfd5172af_iv | ||
-in deploy_key.enc -out ./deploy_key -d | ||
- ssh-add ./deploy_key | ||
- sudo add-apt-repository ppa:longsleep/golang-backports -y | ||
- sudo apt-get update | ||
- sudo apt-get install -y golang-go | ||
- sudo apt-get install -y libev-dev | ||
- go env | grep GOPATH > gopath.env | ||
- source gopath.env | ||
- export PATH=$PATH:$GOPATH/bin | ||
- go get -u github.com/tsenart/vegeta | ||
- npm install -g esy | ||
install: | ||
- esy install -q | ||
- esy @libev install -q | ||
- esy install -q | ||
- esy @libev install -q | ||
before_script: | ||
- npm run build | ||
- npm run build | ||
jobs: | ||
include: | ||
- stage: "Test - Standard" | ||
script: /bin/bash ci/test-standard.sh | ||
- stage: "Test - Libev" | ||
if: branch = master | ||
script: /bin/bash ci/test-libev.sh | ||
- stage: "Load Test - Libev" | ||
if: branch = master | ||
script: /bin/bash ci/test-under-load.sh | ||
- stage: Test - Standard | ||
script: "/bin/bash ci/test-standard.sh" | ||
- stage: Test - Libev | ||
if: branch = master | ||
script: "/bin/bash ci/test-libev.sh" | ||
- stage: Load Test - Libev | ||
if: branch = master | ||
script: "/bin/bash ci/test-under-load.sh" | ||
- stage: Deploy Docs | ||
if: branch = master | ||
script: "/bin/bash ci/deploy-docs.sh" |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
set -e | ||
npm run build-docs | ||
cd docs-src | ||
npm run load-docs | ||
npm run generate | ||
scp -i ../deploy_key -r dist naboris-docs@shawnmcginty.com:~/www |
Binary file not shown.
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
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
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
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