-
Notifications
You must be signed in to change notification settings - Fork 341
/
Copy path.travis.yml
57 lines (50 loc) · 1.17 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
language: node_js
node_js:
- 10
before_install:
- npm i -g npm
- npm i -g mocha-only-detector
- find test/ -name "*.js" -print0 | xargs -0 mocha-only-detector
env:
global:
- COVERAGE_BRANCH=Katalyst
jobs:
include:
- env:
- TEST_PART: All
- env:
- TEST_PART: Coverage
install:
- npm ci
before_script:
- npx solhint "contracts/sol6/**/*.sol"
- npx solhint "contracts/sol5/**/*.sol"
- npx solhint "contracts/sol4/**/*.sol"
script:
- ./cmp.sh
- .travis/test-part.sh
- .travis/report.sh
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: katalyst-coverage.knstats.com
region: ap-southeast-1
acl: public_read
local_dir: report
upload_dir: report
skip_cleanup: true
on:
all_branches: true
condition: $TEST_PART = Sol6
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: katalyst-coverage.knstats.com
region: ap-southeast-1
acl: public_read
local_dir: coverage
skip_cleanup: true
on:
branch: $COVERAGE_BRANCH
condition: $TEST_PART = Coverage