File tree 2 files changed +27
-15
lines changed
2 files changed +27
-15
lines changed Original file line number Diff line number Diff line change 1
- language : node_js
2
- sudo : false
3
- node_js :
4
- - 6
5
- - 8
6
- - 10
1
+ sudo : required
7
2
8
- addons :
9
- apt :
10
- sources :
11
- - ubuntu-toolchain-r-test
12
- packages :
13
- - g++-4.8
3
+ language : generic
14
4
15
- env :
16
- - CXX=g++-4.8
5
+ services :
6
+ - docker
17
7
8
+ matrix :
9
+ include :
10
+ - env : NODE_LTS=argon
11
+ - env : NODE_LTS=boron
12
+ - env : NODE_LTS=carbon
13
+
14
+ script :
15
+ - >
16
+ docker run
17
+ -i
18
+ -v $(pwd):/app
19
+ -w /app
20
+ -e NODE_LTS=$NODE_LTS
21
+ -e KERBEROS_USERNAME=administrator
22
+ -e KERBEROS_PASSWORD=Password01
23
+ -e KERBEROS_REALM=example.com
24
+ -e KERBEROS_PORT=80
25
+ ubuntu:16.04
26
+ /bin/bash ./test/scripts/travis.sh
Original file line number Diff line number Diff line change 4
4
5
5
IP_ADDRESS=$( hostname -I)
6
6
HOSTNAME=$( cat /etc/hostname)
7
+ NODE_LTS=${NODE_LTS:- argon}
7
8
8
9
export KERBEROS_HOSTNAME=$HOSTNAME .$KERBEROS_REALM
9
10
export DEBIAN_FRONTEND=noninteractive
@@ -119,7 +120,9 @@ echo "Installing Node.js"
119
120
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
120
121
export NVM_DIR=" $HOME /.nvm"
121
122
[ -s " $NVM_DIR /nvm.sh" ] && \. " $NVM_DIR /nvm.sh"
122
- nvm install --lts=carbon
123
+ nvm install --lts=$NODE_LTS
123
124
124
125
echo " Installing dependencies and running test"
125
126
npm install --unsafe-perm
127
+ npx mocha test/kerberos_tests.js
128
+
You can’t perform that action at this time.
0 commit comments