-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
41 lines (41 loc) · 1.02 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
os:
- linux
dist:
- bionic
language: node_js
node_js:
- '12'
before_install:
- openssl aes-256-cbc -K $encrypted_dfdcfd5172af_key -iv $encrypted_dfdcfd5172af_iv
-in deploy_key.enc -out ./deploy_key -d
- eval `ssh-agent`
- chmod 400 ./deploy_key
- ssh-add ./deploy_key
- sudo add-apt-repository ppa:longsleep/golang-backports -y
- sudo apt-get update
- sudo apt-get install -y libc6
- 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
before_script:
- 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: Deploy Docs
if: branch = master
script: "/bin/bash ci/deploy-docs.sh"