forked from Dexus/pem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (63 loc) · 1.91 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
language: node_js
sudo: required
notifications:
email:
recipients:
on_success: change
on_failure: change
node_js:
- '10'
- '8'
- '6'
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.2p
- LIBRARY=openssl VERSION=1.1.0i
- LIBRARY=libressl VERSION=2.4.5
- LIBRARY=libressl VERSION=2.6.5
- LIBRARY=libressl VERSION=2.7.4
- LIBRARY=libressl VERSION=2.8.0
matrix:
exclude:
- node_js: '6'
- node_js: '8'
include:
- node_js: '6'
env:
- OPENSSL_DIR=""
- node_js: '8'
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
- npm install -g travis-deploy-once
- 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 travis-deploy-once -b 3 && npm run changelog && 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+$/