forked from mkreiser/ESPN-Fantasy-Football-API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (30 loc) · 795 Bytes
/
.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
language: node_js
node_js:
- "12"
- "10"
branches:
only:
- master
- v3-api-conversion
install:
- npm install
- npm install -g codecov
before_script:
- 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
script: npm run ci && LEAGUE_ID=$LEAGUE_ID ESPN_S2=$ESPN_S2 SWID=$SWID npm run test:integration
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- codecov
deploy:
provider: s3
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
bucket: "espn-fantasy-football-api"
skip_cleanup: true
region: us-east-2
local_dir: docs
on:
branch: master
condition: $TRAVIS_EVENT_TYPE != cron