Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit 51becbc

Browse files
committed
Add CI
1 parent a96c671 commit 51becbc

File tree

4 files changed

+75
-27
lines changed

4 files changed

+75
-27
lines changed

.travis.yml

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,8 @@
1-
2-
#
3-
# Travis CI config
4-
# https://docs.travis-ci.com/user/customizing-the-build/
5-
#
6-
7-
env:
8-
- COVERALLS_ENV=production
9-
10-
branches:
11-
only:
12-
- master
13-
141
language: node_js
15-
162
node_js:
17-
- "7"
18-
19-
cache:
20-
directories:
21-
- "node_modules"
22-
3+
- 12
4+
cache: yarn
235
script:
24-
- npm run lint
25-
- npm test
6+
- yarn lint
7+
- yarn test --coverage
8+
- codecov -f coverage/*.json

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# React Native Image Cache HOC
22

3-
[![Build Status](https://travis-ci.org/billmalarky/react-native-image-cache-hoc.svg?branch=master)](https://travis-ci.org/billmalarky/react-native-image-cache-hoc)
4-
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/billmalarky/react-native-image-cache-hoc/blob/master/LICENSE)
5-
[![ESLint](https://img.shields.io/badge/eslint-ok-green.svg)](https://github.com/billmalarky/react-native-image-cache-hoc/blob/master/.eslintrc.js)
6-
[![Coverage Status](https://coveralls.io/repos/github/billmalarky/react-native-image-cache-hoc/badge.svg?branch=master)](https://coveralls.io/github/billmalarky/react-native-image-cache-hoc?branch=master)
3+
[![Build Status](https://travis-ci.org/mnightingale/react-native-image-cache-hoc.svg?branch=master)](https://travis-ci.org/mnightingale/react-native-image-cache-hoc)
4+
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/mnightingale/react-native-image-cache-hoc/blob/master/LICENSE)
5+
[![codecov](https://codecov.io/gh/mnightingale/react-native-image-cache-hoc/branch/master/graph/badge.svg)](https://codecov.io/gh/mnightingale/react-native-image-cache-hoc)
76

87
React Native Higher Order Component that adds advanced caching functionality to the react native Image component.
98

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
"@types/validator": "^13.1.0",
7878
"babel-eslint": "^10.1.0",
7979
"babel-jest": "^26.3.0",
80+
"codecov": "^3.7.2",
8081
"coveralls": "^3.0.0",
8182
"dv-scripts": "^1.4.2",
8283
"enzyme": "^3.11.0",

yarn.lock

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2308,6 +2308,11 @@ agent-base@4, agent-base@^4.3.0:
23082308
dependencies:
23092309
es6-promisify "^5.0.0"
23102310

2311+
agent-base@5:
2312+
version "5.1.1"
2313+
resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-5.1.1.tgz#e8fb3f242959db44d63be665db7a8e739537a32c"
2314+
integrity sha512-TMeqbNl2fMW0nMjTEPOwe3J/PRFP4vqeoNuQMG0HlMrtm5QxKqdvAkZ1pRBQ/ulIyDD5Yq0nJ7YbdD8ey0TO3g==
2315+
23112316
agent-base@6:
23122317
version "6.0.1"
23132318
resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.1.tgz#808007e4e5867decb0ab6ab2f928fbdb5a596db4"
@@ -2524,6 +2529,11 @@ argv-formatter@~1.0.0:
25242529
resolved "https://registry.yarnpkg.com/argv-formatter/-/argv-formatter-1.0.0.tgz#a0ca0cbc29a5b73e836eebe1cbf6c5e0e4eb82f9"
25252530
integrity sha1-oMoMvCmltz6Dbuvhy/bF4OTrgvk=
25262531

2532+
2533+
version "0.0.2"
2534+
resolved "https://registry.yarnpkg.com/argv/-/argv-0.0.2.tgz#ecbd16f8949b157183711b1bda334f37840185ab"
2535+
integrity sha1-7L0W+JSbFXGDcRsb2jNPN4QBhas=
2536+
25272537
aria-query@^4.2.2:
25282538
version "4.2.2"
25292539
resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-4.2.2.tgz#0d2ca6c9aceb56b8977e9fed6aed7e15bbd2f83b"
@@ -3521,6 +3531,17 @@ code-point-at@^1.0.0:
35213531
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
35223532
integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=
35233533

3534+
codecov@^3.7.2:
3535+
version "3.7.2"
3536+
resolved "https://registry.yarnpkg.com/codecov/-/codecov-3.7.2.tgz#998e68c8c1ef4b55cfcf11cd456866d35e13d693"
3537+
integrity sha512-fmCjAkTese29DUX3GMIi4EaKGflHa4K51EoMc29g8fBHawdk/+KEq5CWOeXLdd9+AT7o1wO4DIpp/Z1KCqCz1g==
3538+
dependencies:
3539+
argv "0.0.2"
3540+
ignore-walk "3.0.3"
3541+
js-yaml "3.13.1"
3542+
teeny-request "6.0.1"
3543+
urlgrey "0.4.4"
3544+
35243545
collect-v8-coverage@^1.0.0:
35253546
version "1.0.1"
35263547
resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz#cc2c8e94fc18bbdffe64d6534570c8a673b27f59"
@@ -5982,6 +6003,14 @@ https-proxy-agent@^2.2.3:
59826003
agent-base "^4.3.0"
59836004
debug "^3.1.0"
59846005

6006+
https-proxy-agent@^4.0.0:
6007+
version "4.0.0"
6008+
resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-4.0.0.tgz#702b71fb5520a132a66de1f67541d9e62154d82b"
6009+
integrity sha512-zoDhWrkR3of1l9QAL8/scJZyLu8j/gBkcwcaQOZh7Gyh/+uJQzGVETdgT30akuwkpL8HTRfssqI3BZuV18teDg==
6010+
dependencies:
6011+
agent-base "5"
6012+
debug "4"
6013+
59856014
https-proxy-agent@^5.0.0:
59866015
version "5.0.0"
59876016
resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz#e2a90542abb68a762e0a0850f6c9edadfd8506b2"
@@ -6031,7 +6060,7 @@ iferr@^1.0.2:
60316060
resolved "https://registry.yarnpkg.com/iferr/-/iferr-1.0.2.tgz#e9fde49a9da06dc4a4194c6c9ed6d08305037a6d"
60326061
integrity sha512-9AfeLfji44r5TKInjhz3W9DyZI1zR1JAf2hVBMGhddAKPqBsupb89jGfbCTHIGZd6fGZl9WlHdn4AObygyMKwg==
60336062

6034-
ignore-walk@^3.0.1:
6063+
ignore-walk@3.0.3, ignore-walk@^3.0.1:
60356064
version "3.0.3"
60366065
resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.3.tgz#017e2447184bfeade7c238e4aefdd1e8f95b1e37"
60376066
integrity sha512-m7o6xuOaT1aqheYHKf8W6J5pYH85ZI9w077erOzLje3JsB1gkafkAhHHY19dqjulgIZHFm32Cp5uNZgcQqdJKw==
@@ -7466,6 +7495,14 @@ jetifier@^1.6.2:
74667495
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
74677496
integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==
74687497

7498+
7499+
version "3.13.1"
7500+
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.13.1.tgz#aff151b30bfdfa8e49e05da22e7415e9dfa37847"
7501+
integrity sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==
7502+
dependencies:
7503+
argparse "^1.0.7"
7504+
esprima "^4.0.0"
7505+
74697506
js-yaml@^3.13.1:
74707507
version "3.14.0"
74717508
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.0.tgz#a7a34170f26a21bb162424d8adacb4113a69e482"
@@ -11615,6 +11652,13 @@ stream-each@^1.1.0:
1161511652
end-of-stream "^1.1.0"
1161611653
stream-shift "^1.0.0"
1161711654

11655+
stream-events@^1.0.5:
11656+
version "1.0.5"
11657+
resolved "https://registry.yarnpkg.com/stream-events/-/stream-events-1.0.5.tgz#bbc898ec4df33a4902d892333d47da9bf1c406d5"
11658+
integrity sha512-E1GUzBSgvct8Jsb3v2X15pjzN1tYebtbLaMg+eBOUOAxgbLoSbT2NS91ckc5lJD1KfLjId+jXJRgo0qnV5Nerg==
11659+
dependencies:
11660+
stubs "^3.0.0"
11661+
1161811662
stream-iterate@^1.1.0:
1161911663
version "1.2.0"
1162011664
resolved "https://registry.yarnpkg.com/stream-iterate/-/stream-iterate-1.2.0.tgz#2bd7c77296c1702a46488b8ad41f79865eecd4e1"
@@ -11829,6 +11873,11 @@ strip-json-comments@~2.0.1:
1182911873
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
1183011874
integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo=
1183111875

11876+
stubs@^3.0.0:
11877+
version "3.0.0"
11878+
resolved "https://registry.yarnpkg.com/stubs/-/stubs-3.0.0.tgz#e8d2ba1fa9c90570303c030b6900f7d5f89abe5b"
11879+
integrity sha1-6NK6H6nJBXAwPAMLaQD31fiavls=
11880+
1183211881
sudo-prompt@^9.0.0:
1183311882
version "9.2.1"
1183411883
resolved "https://registry.yarnpkg.com/sudo-prompt/-/sudo-prompt-9.2.1.tgz#77efb84309c9ca489527a4e749f287e6bdd52afd"
@@ -11896,6 +11945,17 @@ tar@^4.4.10, tar@^4.4.12, tar@^4.4.13:
1189611945
safe-buffer "^5.1.2"
1189711946
yallist "^3.0.3"
1189811947

11948+
11949+
version "6.0.1"
11950+
resolved "https://registry.yarnpkg.com/teeny-request/-/teeny-request-6.0.1.tgz#9b1f512cef152945827ba7e34f62523a4ce2c5b0"
11951+
integrity sha512-TAK0c9a00ELOqLrZ49cFxvPVogMUFaWY8dUsQc/0CuQPGF+BOxOQzXfE413BAk2kLomwNplvdtMpeaeGWmoc2g==
11952+
dependencies:
11953+
http-proxy-agent "^4.0.0"
11954+
https-proxy-agent "^4.0.0"
11955+
node-fetch "^2.2.0"
11956+
stream-events "^1.0.5"
11957+
uuid "^3.3.2"
11958+
1189911959
temp-dir@^2.0.0:
1190011960
version "2.0.0"
1190111961
resolved "https://registry.yarnpkg.com/temp-dir/-/temp-dir-2.0.0.tgz#bde92b05bdfeb1516e804c9c00ad45177f31321e"
@@ -12412,6 +12472,11 @@ url-parse@^1.2.0:
1241212472
querystringify "^2.1.1"
1241312473
requires-port "^1.0.0"
1241412474

12475+
12476+
version "0.4.4"
12477+
resolved "https://registry.yarnpkg.com/urlgrey/-/urlgrey-0.4.4.tgz#892fe95960805e85519f1cd4389f2cb4cbb7652f"
12478+
integrity sha1-iS/pWWCAXoVRnxzUOJ8stMu3ZS8=
12479+
1241512480
use-subscription@^1.0.0:
1241612481
version "1.4.1"
1241712482
resolved "https://registry.yarnpkg.com/use-subscription/-/use-subscription-1.4.1.tgz#edcbcc220f1adb2dd4fa0b2f61b6cc308e620069"

0 commit comments

Comments
 (0)