Skip to content

Commit 7f08784

Browse files
ning-yremo5000
authored andcommitted
Add travis and coveralls (#16)
* Add travis and coveralls * Add travis and coverall badges
1 parent afa5da8 commit 7f08784

File tree

4 files changed

+56
-7
lines changed

4 files changed

+56
-7
lines changed

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: node_js
2+
node_js:
3+
- 9
4+
cache: yarn
5+
branches:
6+
except:
7+
- /^no-ci.*$/
8+
script:
9+
- yarn test
10+
- yarn build
11+
- yarn test-coveralls

README.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
slang
2-
=====
1+
js-slang
2+
========
3+
4+
.. image:: https://travis-ci.org/source-academy/js-slang.svg?branch=master
5+
:target: https://travis-ci.org/source-academy/js-slang
6+
.. image:: https://coveralls.io/repos/github/source-academy/js-slang/badge.svg?branch=master
7+
:target: https://coveralls.io/github/source-academy/js-slang?branch=master
8+
39
An open-source interpreter for *The Source*.
410

511
Usage
612
-----
7-
The REPL is still under development, and is under the `source-academy/slang` repository.
813

914
To build,
1015

package.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"scripts": {
2424
"prepublishOnly": "tsc",
2525
"build": "tsc",
26-
"test": "jest"
26+
"test": "jest",
27+
"test-coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls"
2728
},
2829
"repository": {
2930
"type": "git",
@@ -38,6 +39,7 @@
3839
"@types/invariant": "^2.2.29",
3940
"@types/jest": "^23.1.4",
4041
"@types/node": "^9.4.7",
42+
"coveralls": "^3.0.1",
4143
"jest": "^23.3.0",
4244
"ts-jest": "^23.0.0",
4345
"typescript": "^2.7.2"
@@ -50,6 +52,14 @@
5052
"transform": {
5153
"\\.ts$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
5254
},
53-
"testRegex": "/__tests__/.*\\.ts$"
55+
"testRegex": "/__tests__/.*\\.ts$",
56+
"testPathIgnorePatterns": [
57+
"/dist/"
58+
],
59+
"coveragePathIgnorePatterns": [
60+
"/node_modules/",
61+
"/src/typings/",
62+
"/dist/"
63+
]
5464
}
5565
}

yarn.lock

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,17 @@ [email protected], core-util-is@~1.0.0:
649649
version "1.0.2"
650650
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
651651

652+
coveralls@^3.0.1:
653+
version "3.0.2"
654+
resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.0.2.tgz#f5a0bcd90ca4e64e088b710fa8dda640aea4884f"
655+
dependencies:
656+
growl "~> 1.10.0"
657+
js-yaml "^3.11.0"
658+
lcov-parse "^0.0.10"
659+
log-driver "^1.2.7"
660+
minimist "^1.2.0"
661+
request "^2.85.0"
662+
652663
cpx@^1.5.0:
653664
version "1.5.0"
654665
resolved "https://registry.yarnpkg.com/cpx/-/cpx-1.5.0.tgz#185be018511d87270dedccc293171e37655ab88f"
@@ -1162,6 +1173,10 @@ graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6:
11621173
version "4.1.11"
11631174
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"
11641175

1176+
"growl@~> 1.10.0":
1177+
version "1.10.5"
1178+
resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz#f2735dc2283674fa67478b10181059355c369e5e"
1179+
11651180
growly@^1.3.0:
11661181
version "1.3.0"
11671182
resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081"
@@ -1873,7 +1888,7 @@ js-tokens@^3.0.0, js-tokens@^3.0.2:
18731888
version "3.0.2"
18741889
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b"
18751890

1876-
js-yaml@^3.7.0:
1891+
js-yaml@^3.11.0, js-yaml@^3.7.0:
18771892
version "3.12.0"
18781893
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.12.0.tgz#eaed656ec8344f10f527c6bfa1b6e2244de167d1"
18791894
dependencies:
@@ -1984,6 +1999,10 @@ lcid@^1.0.0:
19841999
dependencies:
19852000
invert-kv "^1.0.0"
19862001

2002+
lcov-parse@^0.0.10:
2003+
version "0.0.10"
2004+
resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3"
2005+
19872006
left-pad@^1.2.0:
19882007
version "1.3.0"
19892008
resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e"
@@ -2031,6 +2050,10 @@ lodash@^4.13.1, lodash@^4.17.10, lodash@^4.17.4:
20312050
version "4.17.10"
20322051
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7"
20332052

2053+
log-driver@^1.2.7:
2054+
version "1.2.7"
2055+
resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.7.tgz#63b95021f0702fedfa2c9bb0a24e7797d71871d8"
2056+
20342057
longest@^1.0.1:
20352058
version "1.0.1"
20362059
resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097"
@@ -2676,7 +2699,7 @@ request-promise-native@^1.0.5:
26762699
stealthy-require "^1.1.0"
26772700
tough-cookie ">=2.3.3"
26782701

2679-
request@^2.83.0:
2702+
request@^2.83.0, request@^2.85.0:
26802703
version "2.87.0"
26812704
resolved "https://registry.yarnpkg.com/request/-/request-2.87.0.tgz#32f00235cd08d482b4d0d68db93a829c0ed5756e"
26822705
dependencies:

0 commit comments

Comments
 (0)