-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (62 loc) · 1.82 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
language: node_js
sudo: required
notifications:
email:
recipients:
on_success: change
on_failure: change
node_js:
- '8'
- '6'
- '4'
env:
global:
- OPENSSL_DIR=/openssl
- TARGET=x86_64-unknown-linux-gnu
matrix:
- LIBRARY=openssl VERSION=0.9.8zh
- LIBRARY=openssl VERSION=1.0.1u
- LIBRARY=openssl VERSION=1.0.2l
- LIBRARY=openssl VERSION=1.1.0f
- LIBRARY=libressl VERSION=2.4.4
- LIBRARY=libressl VERSION=2.5.5
- LIBRARY=libressl VERSION=2.6.4
- LIBRARY=libressl VERSION=2.7.2
matrix:
exclude:
- node_js: '6'
- node_js: '4'
include:
- node_js: '6'
env:
- OPENSSL_DIR=""
- node_js: '4'
env:
- OPENSSL_DIR=""
before_install:
- sudo apt-get install -y haveged
- |
if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" != "false" ]]; then
#git clone "https://github.com/$TRAVIS_REPO_SLUG.git" "$TRAVIS_REPO_SLUG";
#cd "$TRAVIS_REPO_SLUG";
( set -euo pipefail
if [[ "${TRAVIS_COMMIT}" != "$(git rev-parse HEAD)" ]]; then
echo "Commit $(git rev-parse HEAD) doesn't match expected commit ${TRAVIS_COMMIT}"
git checkout "${TRAVIS_COMMIT}"
fi
)
fi
before_script:
- npm prune
- sudo haveged -w 2048
script:
- if [[ "$OPENSSL_DIR" != "" ]]; then "./bin/test_build_openssl.sh" ; fi
- npm run test
after_success:
- if [[ "$TRAVIS_NODE_VERSION" == "8" && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then npm run aftersuccess ; fi
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then npm run semantic-release ; fi
- if [[ "$TRAVIS_NODE_VERSION" == "8" && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then npm run aftersuccess -- -push ; fi
branches:
except:
- /^v\d+\.\d+\.\d+$/