Skip to content

Commit 1796532

Browse files
authored
Merge pull request #288 from manosim/travis-yarn
Travis & Yarn
2 parents 2e100ef + 7a715f1 commit 1796532

File tree

6 files changed

+774
-656
lines changed

6 files changed

+774
-656
lines changed

.travis.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
language: node_js
22

33
node_js:
4-
- '5'
4+
- '6.10.3'
55

66
cache:
7+
yarn: true
78
directories:
8-
- node_modules
9-
10-
install:
11-
- npm install
12-
13-
before_script:
14-
- npm run build
9+
- "node_modules"
1510

1611
script:
17-
- npm test -- --runInBand
12+
- yarn test -- --runInBand
1813

1914
after_success:
2015
- bash <(curl -s https://codecov.io/bash)

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "gitify",
3-
"version": "1.1.0",
3+
"version": "2.0.0",
44
"description": "GitHub Notifications on your menu bar.",
55
"main": "main.js",
66
"scripts": {
77
"build-js": "mkdir -p dist/js/ && browserify -t babelify --ignore-missing --no-builtins --no-commondir --insert-global-vars=\"global\" --no-browser-field --exclude electron src/js/app.js | uglifyjs > dist/js/app.js",
88
"build": "npm run build-js && gulp build",
99
"watch-js": "watchify -t babelify --ignore-missing --no-builtins --no-commondir --insert-global-vars=\"global\" --no-browser-field --exclude electron src/js/app.js -o dist/js/app.js -v",
1010
"watch": "gulp build && npm run watch-js & gulp watch",
11-
"package": "electron-packager . Gitify --overwrite --platform=darwin --arch=x64 --version=1.4.0 --asar=true --icon=images/app-icon.icns --prune --ignore='src' --ignore='coverage'",
11+
"package": "electron-packager . Gitify --overwrite --platform=darwin --arch=x64 --version=1.6.10 --asar=true --icon=images/app-icon.icns --prune --ignore='src' --ignore='coverage'",
1212
"codesign": "bash scripts/codesign.bash",
1313
"dist": "npm run build && npm run package && npm run codesign",
1414
"lint-js": "eslint 'src/js/' 'src/js/app.js' 'main.js'",
@@ -76,11 +76,11 @@
7676
"react-emojione": "=2.0.0",
7777
"react-icheck": "=0.3.8",
7878
"react-modal": "=1.7.7",
79-
"react-redux": "=5.0.4",
79+
"react-redux": "=5.0.5",
8080
"react-router": "=4.1.1",
8181
"react-router-dom": "=4.1.1",
8282
"redux": "=3.6.0",
83-
"redux-form": "=6.6.3",
83+
"redux-form": "=6.7.0",
8484
"redux-storage": "=4.1.2",
8585
"redux-storage-decorator-filter": "=1.1.8",
8686
"redux-storage-engine-localstorage": "=1.1.4",
@@ -89,26 +89,26 @@
8989
},
9090
"devDependencies": {
9191
"babel-eslint": "=7.2.3",
92-
"babel-jest": "=19.0.0",
92+
"babel-jest": "=20.0.3",
9393
"babel-preset-es2015": "=6.24.1",
9494
"babel-preset-react": "=6.24.1",
9595
"babel-preset-stage-0": "=6.24.1",
9696
"babelify": "=7.3.0",
97-
"browserify": "=14.3.0",
98-
"electron": "=1.6.2",
99-
"electron-packager": "=8.6.0",
97+
"browserify": "=14.4.0",
98+
"electron": "=1.6.10",
99+
"electron-packager": "=8.7.0",
100100
"enzyme": "=2.8.2",
101101
"eslint": "=3.19.0",
102-
"eslint-plugin-react": "=6.10.3",
102+
"eslint-plugin-react": "=7.0.1",
103103
"gulp": "=3.9.1",
104104
"gulp-sass": "=3.1.0",
105-
"jest": "=19.0.2",
105+
"jest": "=20.0.4",
106106
"nock": "=9.0.13",
107107
"react-test-renderer": "=15.5.4",
108-
"redux-logger": "=3.0.1",
108+
"redux-logger": "=3.0.6",
109109
"redux-mock-store": "=1.2.3",
110110
"sass-lint": "=1.10.2 -v",
111-
"uglify-js": "=2.8.22",
111+
"uglify-js": "=3.0.12",
112112
"watchify": "=3.9.0"
113113
}
114114
}
Lines changed: 47 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,75 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`reducers/auth.js should handle LOGIN.FAILURE 1`] = `
4-
Object {
5-
"failed": true,
6-
"isFetching": false,
7-
"response": Object {
8-
"msg": "Failed to login.",
4+
Immutable.Map {
5+
response: Immutable.Map {
6+
msg: "Failed to login.",
97
},
10-
"token": null,
8+
token: null,
9+
isFetching: false,
10+
failed: true,
1111
}
1212
`;
1313

1414
exports[`reducers/auth.js should handle LOGIN.REQUEST 1`] = `
15-
Object {
16-
"enterpriseAccounts": Array [],
17-
"failed": false,
18-
"isFetching": true,
19-
"response": Object {},
20-
"token": null,
15+
Immutable.Map {
16+
response: Immutable.Map {
17+
},
18+
token: null,
19+
isFetching: true,
20+
failed: false,
21+
enterpriseAccounts: Immutable.List [
22+
],
2123
}
2224
`;
2325

2426
exports[`reducers/auth.js should handle LOGIN.SUCCESS - enterprise 1`] = `
25-
Object {
26-
"enterpriseAccounts": Array [
27-
Object {
28-
"hostname": "github.gitify.io",
29-
"token": "123HELLOWORLDTOKEN",
27+
Immutable.Map {
28+
response: Immutable.Map {
29+
},
30+
token: null,
31+
isFetching: false,
32+
failed: false,
33+
enterpriseAccounts: Immutable.List [
34+
Immutable.Map {
35+
hostname: "github.gitify.io",
36+
token: "123HELLOWORLDTOKEN",
3037
},
3138
],
32-
"failed": false,
33-
"isFetching": false,
34-
"response": Object {},
35-
"token": null,
3639
}
3740
`;
3841

3942
exports[`reducers/auth.js should handle LOGIN.SUCCESS - github.com 1`] = `
40-
Object {
41-
"enterpriseAccounts": Array [],
42-
"failed": false,
43-
"isFetching": false,
44-
"response": Object {},
45-
"token": "123HELLOWORLDTOKEN",
43+
Immutable.Map {
44+
response: Immutable.Map {
45+
},
46+
token: "123HELLOWORLDTOKEN",
47+
isFetching: false,
48+
failed: false,
49+
enterpriseAccounts: Immutable.List [
50+
],
4651
}
4752
`;
4853

4954
exports[`reducers/auth.js should handle LOGOUT 1`] = `
50-
Object {
51-
"enterpriseAccounts": Array [],
52-
"failed": false,
53-
"isFetching": false,
54-
"response": null,
55-
"token": null,
55+
Immutable.Map {
56+
response: null,
57+
token: null,
58+
isFetching: false,
59+
failed: false,
60+
enterpriseAccounts: Immutable.List [
61+
],
5662
}
5763
`;
5864

5965
exports[`reducers/auth.js should return the initial state 1`] = `
60-
Object {
61-
"enterpriseAccounts": Array [],
62-
"failed": false,
63-
"isFetching": false,
64-
"response": Object {},
65-
"token": null,
66+
Immutable.Map {
67+
response: Immutable.Map {
68+
},
69+
token: null,
70+
isFetching: false,
71+
failed: false,
72+
enterpriseAccounts: Immutable.List [
73+
],
6674
}
6775
`;

0 commit comments

Comments
 (0)