Skip to content

Commit d2da8e6

Browse files
authored
ci(Travis): adds Travis build (#30)
* ci(Travis): adds travis build * chore(pacakge): adds lock file as binary * ci(Travis): remove webpack install * test: fix assertions failing after 8b9879e
1 parent 2730ccb commit d2da8e6

File tree

5 files changed

+171
-6
lines changed

5 files changed

+171
-6
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yarn.lock -diff

.travis.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
sudo: false
2+
language: node_js
3+
branches:
4+
only:
5+
- master
6+
matrix:
7+
fast_finish: true
8+
include:
9+
- os: linux
10+
node_js: '6'
11+
env: JOB_PART=test
12+
- os: linux
13+
node_js: '4.3'
14+
env: JOB_PART=test
15+
- os: linux
16+
node_js: '7'
17+
env: JOB_PART=test
18+
before_install:
19+
- nvm --version
20+
- node --version
21+
script:
22+
- yarn run travis:$JOB_PART

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"author": "Tobias Koppers @sokra",
55
"description": "extracts inlined source map and offers it to webpack",
66
"scripts": {
7-
"test": "mocha -R spec"
7+
"test": "mocha -R spec",
8+
"travis:test": "mocha -R spec"
89
},
910
"devDependencies": {
1011
"should": "^3.3.1",

test/index.test.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe("source-map-loader", function() {
5252
execLoader(path.join(__dirname, "fixtures", "inline-source-map.js"), function(err, res, map, deps, warns) {
5353
should.equal(err, null);
5454
warns.should.be.eql([]);
55-
should.equal(res, "with SourceMap\n\n// comment"),
55+
should.equal(res, "with SourceMap\n// comment"),
5656
map.should.be.eql({
5757
"version":3,
5858
"file":"inline-source-map.js",
@@ -70,7 +70,7 @@ describe("source-map-loader", function() {
7070
execLoader(path.join(__dirname, "fixtures", "external-source-map.js"), function(err, res, map, deps, warns) {
7171
should.equal(err, null);
7272
warns.should.be.eql([]);
73-
should.equal(res, "with SourceMap\n\n// comment"),
73+
should.equal(res, "with SourceMap\n// comment"),
7474
map.should.be.eql({
7575
"version":3,
7676
"file":"external-source-map.js",
@@ -90,7 +90,7 @@ describe("source-map-loader", function() {
9090
execLoader(path.join(__dirname, "fixtures", "external-source-map2.js"), function(err, res, map, deps, warns) {
9191
should.equal(err, null);
9292
warns.should.be.eql([]);
93-
should.equal(res, "with SourceMap\n\n// comment"),
93+
should.equal(res, "with SourceMap\n// comment"),
9494
map.should.be.eql({
9595
"version":3,
9696
"file":"external-source-map2.js",
@@ -125,7 +125,7 @@ describe("source-map-loader", function() {
125125
warns.should.be.eql([
126126
"Cannot find source file 'missing-source-map2.txt': Error: File not found"
127127
]);
128-
should.equal(res, "with SourceMap\n\n// comment"),
128+
should.equal(res, "with SourceMap\n// comment"),
129129
map.should.be.eql({
130130
"version":3,
131131
"file":"missing-source-map2.js",
@@ -146,7 +146,7 @@ describe("source-map-loader", function() {
146146
execLoader(path.join(__dirname, "fixtures", "charset-inline-source-map.js"), function(err, res, map, deps, warns) {
147147
should.equal(err, null);
148148
warns.should.be.eql([]);
149-
should.equal(res, "with SourceMap\n\n// comment"),
149+
should.equal(res, "with SourceMap\n// comment"),
150150
map.should.be.eql({
151151
"version":3,
152152
"file":"charset-inline-source-map.js",

yarn.lock

+141
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2+
# yarn lockfile v1
3+
4+
5+
amdefine@>=0.0.4:
6+
version "1.0.1"
7+
resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5"
8+
9+
async@^0.9.0:
10+
version "0.9.2"
11+
resolved "https://registry.yarnpkg.com/async/-/async-0.9.2.tgz#aea74d5e61c1f899613bf64bda66d4c78f2fd17d"
12+
13+
big.js@^3.1.3:
14+
version "3.1.3"
15+
resolved "https://registry.yarnpkg.com/big.js/-/big.js-3.1.3.tgz#4cada2193652eb3ca9ec8e55c9015669c9806978"
16+
17+
18+
version "0.6.1"
19+
resolved "https://registry.yarnpkg.com/commander/-/commander-0.6.1.tgz#fa68a14f6a945d54dbbe50d8cdb3320e9e3b1a06"
20+
21+
22+
version "2.3.0"
23+
resolved "https://registry.yarnpkg.com/commander/-/commander-2.3.0.tgz#fd430e889832ec353b9acd1de217c11cb3eef873"
24+
25+
26+
version "2.0.0"
27+
resolved "https://registry.yarnpkg.com/debug/-/debug-2.0.0.tgz#89bd9df6732b51256bc6705342bba02ed12131ef"
28+
dependencies:
29+
ms "0.6.2"
30+
31+
32+
version "1.0.8"
33+
resolved "https://registry.yarnpkg.com/diff/-/diff-1.0.8.tgz#343276308ec991b7bc82267ed55bc1411f971666"
34+
35+
emojis-list@^2.0.0:
36+
version "2.1.0"
37+
resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389"
38+
39+
40+
version "1.0.2"
41+
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.2.tgz#4dbc2fe674e71949caf3fb2695ce7f2dc1d9a8d1"
42+
43+
44+
version "3.2.3"
45+
resolved "https://registry.yarnpkg.com/glob/-/glob-3.2.3.tgz#e313eeb249c7affaa5c475286b0e115b59839467"
46+
dependencies:
47+
graceful-fs "~2.0.0"
48+
inherits "2"
49+
minimatch "~0.2.11"
50+
51+
graceful-fs@~2.0.0:
52+
version "2.0.3"
53+
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-2.0.3.tgz#7cd2cdb228a4a3f36e95efa6cc142de7d1a136d0"
54+
55+
56+
version "1.8.1"
57+
resolved "https://registry.yarnpkg.com/growl/-/growl-1.8.1.tgz#4b2dec8d907e93db336624dcec0183502f8c9428"
58+
59+
inherits@2:
60+
version "2.0.3"
61+
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"
62+
63+
64+
version "0.26.3"
65+
resolved "https://registry.yarnpkg.com/jade/-/jade-0.26.3.tgz#8f10d7977d8d79f2f6ff862a81b0513ccb25686c"
66+
dependencies:
67+
commander "0.6.1"
68+
mkdirp "0.3.0"
69+
70+
json5@^0.5.0:
71+
version "0.5.1"
72+
resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821"
73+
74+
loader-utils@~0.2.2:
75+
version "0.2.17"
76+
resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-0.2.17.tgz#f86e6374d43205a6e6c60e9196f17c0299bfb348"
77+
dependencies:
78+
big.js "^3.1.3"
79+
emojis-list "^2.0.0"
80+
json5 "^0.5.0"
81+
object-assign "^4.0.1"
82+
83+
lru-cache@2:
84+
version "2.7.3"
85+
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-2.7.3.tgz#6d4524e8b955f95d4f5b58851ce21dd72fb4e952"
86+
87+
minimatch@~0.2.11:
88+
version "0.2.14"
89+
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-0.2.14.tgz#c74e780574f63c6f9a090e90efbe6ef53a6a756a"
90+
dependencies:
91+
lru-cache "2"
92+
sigmund "~1.0.0"
93+
94+
95+
version "0.0.8"
96+
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"
97+
98+
99+
version "0.3.0"
100+
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.3.0.tgz#1bbf5ab1ba827af23575143490426455f481fe1e"
101+
102+
103+
version "0.5.0"
104+
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.0.tgz#1d73076a6df986cd9344e15e71fcc05a4c9abf12"
105+
dependencies:
106+
minimist "0.0.8"
107+
108+
mocha@^1.18.2:
109+
version "1.21.5"
110+
resolved "https://registry.yarnpkg.com/mocha/-/mocha-1.21.5.tgz#7c58b09174df976e434a23b1e8d639873fc529e9"
111+
dependencies:
112+
commander "2.3.0"
113+
debug "2.0.0"
114+
diff "1.0.8"
115+
escape-string-regexp "1.0.2"
116+
glob "3.2.3"
117+
growl "1.8.1"
118+
jade "0.26.3"
119+
mkdirp "0.5.0"
120+
121+
122+
version "0.6.2"
123+
resolved "https://registry.yarnpkg.com/ms/-/ms-0.6.2.tgz#d89c2124c6fdc1353d65a8b77bf1aac4b193708c"
124+
125+
object-assign@^4.0.1:
126+
version "4.1.1"
127+
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
128+
129+
should@^3.3.1:
130+
version "3.3.2"
131+
resolved "https://registry.yarnpkg.com/should/-/should-3.3.2.tgz#c883dd409b53bbdf1b55ec0d8fc3865f2b287e64"
132+
133+
sigmund@~1.0.0:
134+
version "1.0.1"
135+
resolved "https://registry.yarnpkg.com/sigmund/-/sigmund-1.0.1.tgz#3ff21f198cad2175f9f3b781853fd94d0d19b590"
136+
137+
source-map@~0.1.33:
138+
version "0.1.43"
139+
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.1.43.tgz#c24bc146ca517c1471f5dacbe2571b2b7f9e3346"
140+
dependencies:
141+
amdefine ">=0.0.4"

0 commit comments

Comments
 (0)