forked from PeerJ/slamscan
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
64 lines (64 loc) · 3.77 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
language: node_js
os: linux
dist: bionic
matrix:
fast_finish: true
allow_failures:
- node_js: node
- node_js: lts/*
node_js:
- 10
- 12
- lts/*
- node
env:
global:
- SLAMSCAN_FRESHCLAM_BINARY_PATH=$(which freshclam)
- SLAMSCAN_FRESHCLAM_CONFIG_PATH=$TRAVIS_BUILD_DIR/build/etc/freshclam.conf
- SLAMSCAN_CLAMSCAN_BINARY_PATH=$(which clamscan)
- SLAMSCAN_CLAMSCAN_DB_PATH=$TRAVIS_BUILD_DIR/build/defs
- SLAMSCAN_CLAMSCAN_DEBUG_MODE=true
- secure: W1nRKh4ZZOqHuW42OwITxAOOSdQIwJadLXZqOMNEcYgZ300y5yMm3ATSXRjzQFHXXNOpvLvD3QsCKAfTg+JN7kgAyld+OvELERIYticJBdBmWaJrTcx1s3KVQdMfobPRb75CSJ9r/lqG8M4fBOWHRWEI3lMaZlzFeTuGgUA9ZvhexTaptB1LxQTy7m+9UG3yEsnY4oAW1QjMyJiLEAErVx2+RvDpNs2mqwoKIyoWwuTtK175AOCgEeOn52WgBzbEtaRoCZoMNQkEQEWnyDlAqkYZI6BCf3mGMbOfBJPpy8bH09TX+FsGhzs1FCE+D4hi9j4YDNROKy2blEft8PEABxfPUdWLkzpGGWT28uzQcCcdxk6QKBx/EJIxEqcvrdIGtaBCvg4iNAmCThGo3Y8tqFBoOkFjJlS/6GzxhGHhvoDO//rYfGDuft34s+XYSARZiflmDNCS22pUxZWUIjzUjHwT5T1STDLSN5l14MpwyiJAlxXJJwuL2ynu0Vn++HtcD/PY65vCY/PTffTSDi6pQ8Liq7PnpU4ud55PGw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y/wmd9yRXWto0qvYZ/dkNjGqncNTD/yCO0M24tqR7oUFtzeGejOaqUoxnCbPIx3zc0aWtyq4s0rTjv+FVPixRjRsA4wmAZLo+PF97umiGGLuDLTFQfwM+TuxIk9x7sXB943NS+ar+P6M55OfZ0JqYfl/e1eDy+hKz0+rqYdmkWbozVH4tg1AtEaziEV8ZcP8tMGjtlyrErhNrYKe8hH3erDylI4mlNB6FBnQi+FmyOi2ZrutSMSWHBvR+knTMez5BYyqXv/HpsafrWnIbXf4pSjpHX/Mvy4W1KohZtOCjRSQ9SEC5xaDWuNa/AWu6a1hlX6JJhkNU+opkkimURgRlXxdhnXu5GFWDbxhDnBkhkpV5Hj/TmSpv78A7oZMxyARcu1Tx8V2sYqafPa2qFBEuphb2crWgBc7dtQATo8nhwW3czdk76eVnM9ftf4=
cache: yarn
before_install:
- yarn config set script-shell $(which bash)
before_script:
- yarn run pretest
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
> ./cc-test-reporter
- chmod +x ./cc-test-reporter
- "./cc-test-reporter before-build"
- echo $SLAMSCAN_CLAMSCAN_DB_PATH
- "$SLAMSCAN_FRESHCLAM_BINARY_PATH --version"
- echo $SLAMSCAN_CLAMSCAN_BINARY_PATH
- "$SLAMSCAN_CLAMSCAN_BINARY_PATH --version"
script:
- yarn run cover:actual
after_script:
- yarn run cover:collect
- yarn run coveralls
- "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"
- CODECLIMATE_API_HOST=https://codebeat.co/webhooks/code_coverage CODECLIMATE_REPO_TOKEN=6e956650-6125-4fbb-8e16-10a17d043e2c
npx codeclimate-test-reporter < coverage/lcov.info
- python < $(curl https://report.ci/upload.py)
- bash <(curl -s https://codecov.io/bash)
- bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage/lcov.info
before_deploy:
- git config --local user.name "$TRAVIS_AUTHOR_NAME"
- git config --local user.email "$TRAVIS_AUTHOR_EMAIL"
deploy:
provider: script
script: yarn semantic-release
skip_cleanup: true
on:
branch: master
node: 10
os: linux
condition: "$TRAVIS_OS_NAME = linux"
addons:
apt:
update: true
packages:
- clamav