-
-
Notifications
You must be signed in to change notification settings - Fork 129
/
.old.travis.yml
69 lines (69 loc) · 2.04 KB
/
.old.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
language: node_js
sudo: required
notifications:
email:
recipients:
on_success: change
on_failure: change
node_js:
- "16"
- "14"
- "12"
- "10"
- "8"
cache:
npm: false
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.2u
- LIBRARY=openssl VERSION=1.1.0l
- LIBRARY=openssl VERSION=1.1.1l
- LIBRARY=openssl VERSION=3.0.0
- 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: "14"
- node_js: "8"
include:
- node_js: "14"
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+$/