-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
34 lines (34 loc) · 836 Bytes
/
.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
dist: bionic
language: node_js
node_js:
- 12
- 13
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- socat
- g++-6
env:
global:
- CXX=g++-6
- REQUIRE_SINGLE=true
matrix:
- TARGET=test
- TARGET=test-stress
- TARGET=test-multi
- TARGET=test-multi-remote
before_install:
- ssh-keygen -t rsa -f ~/.ssh/id_rsa -N ''
- cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
- ssh-keyscan -t rsa localhost >> ~/.ssh/known_hosts
- echo PATH=\"$(dirname "$(which python)"):\$PATH\" > ~/.bashrc.new
- echo . ~/.nvm/nvm.sh >> ~/.bashrc.new
- cat ~/.bashrc >> ~/.bashrc.new
- mv ~/.bashrc.new ~/.bashrc
- cat ~/.bashrc
- nvm alias default "$(nvm current)"
- ssh localhost node --version
script:
- npm run ci-$TARGET-$(node --version | grep -oE '[0-9]+' | head -1)