forked from node-opcua/node-opcua
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
109 lines (100 loc) · 3 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
101
102
103
104
105
106
107
108
109
sudo: false
language: node_js
node_js:
# dropping support for node 0.10 - "0.10"
# dropping support for node 0.12 - "0.12"
# dropping support for node 4
# dropping support for node - "6" (promisify not supporteed)
# dropped - "7"
# dropped - "8" - (January 2021 )( 'for await' not supported - required by latest version of mocha)
# dropped - "9"
# dropped - "10" (not supported any mopre -> end of life 2021-04-30)
# - "11" not used yet => Lerna stack overflows!
- "12"
- "14"
- "15"
os:
- linux
# - osx
# - windows
matrix:
allow_failures:
- os: osx
before_install:
- curl -L https://unpkg.com/@pnpm/self-installer | node
- pnpm config set store-dir ~/.pnpm-store
# make sure we have enough ephemeral port on MacOS
# https://superuser.com/questions/145989/does-mac-os-x-throttle-the-rate-of-socket-creation
# https://superuser.com/a/443168
- if [[ $TRAVIS_OS_NAME =~ ^osx$ ]]; then
sudo ulimit -a;
sudo sysctl net.inet.ip.portrange.first net.inet.ip.portrange.hifirst net.inet.ip.portrange.last net.inet.ip.portrange.hilast;
sudo sysctl -w net.inet.ip.portrange.first=32768;
sudo sysctl -w net.inet.ip.portrange.hifirst=32768;
sudo sysctl -w net.inet.tcp.msl=1000;
sudo sysctl kern.maxfiles;
sysctl kern.maxfilesperproc;
echo " setting new limits";
sudo sysctl -w kern.maxfiles=50000;
sudo sysctl -w kern.maxfilesperproc=20000;
sudo serverinfo --setperfmode true;
sudo ulimit -c unlimited;
sudo ulimit -n unlimited;
sudo ulimit -l unlimited;
sudo ulimit -a;
fi;
- if [[ $TRAVIS_OS_NAME =~ ^osx$ ]]; then
brew install libressl;
export PATH=/usr/local/opt/libressl/bin:$PATH;
fi;
- openssl version
before_script:
- npm install -g [email protected]
- if [[ $TRAVIS_OS_NAME =~ ^linux$ ]]; then
if [[ $TRAVIS_NODE_VERSION =~ ^10$ ]]; then
npm install -g istanbul coveralls;
npm install -g codeclimate-test-reporter;
fi;
fi;
install:
- npm install -g npm pnpm
- pnpm install typescript -g
- pnpm install codecov -g
- pnpm ci
# keep the npm cache around to speed up installs
cache:
npm: false
directories:
- "certificates"
- "~/.pnpm-store"
after_success:
# only run code coverage on linux and latest nodejs version
- if [[ $TRAVIS_OS_NAME =~ ^linux$ ]];
then
if [[ $TRAVIS_NODE_VERSION =~ ^10$ ]];
then
fi;
else
fi;
script:
- if [[ $TRAVIS_OS_NAME =~ ^osx$ ]];
then
export TESTPAGE=11;
pnpm test;
else
if [[ $TRAVIS_NODE_VERSION =~ ^10$ ]];
then
pnpm run pretest;
make test-cov;
else
pnpm run pretest;
pnpm test;
fi ;
fi ;
# lerna run test-typescript
notifications:
webhooks:
urls: https://webhooks.gitter.im/e/4d51130aaea652dbc8f1
on_success: always # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # default: false