Skip to content

Commit c490eb0

Browse files
travis: add linter
Signed-off-by: Luis Gustavo S. Barreto <[email protected]>
1 parent c0e6d02 commit c490eb0

File tree

3 files changed

+39
-36
lines changed

3 files changed

+39
-36
lines changed

.travis.yml

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
1-
language: go
2-
3-
go_import_path: github.com/UpdateHub/updatehub-ce
4-
5-
addons:
6-
apt:
7-
sources:
8-
- sourceline: 'ppa:masterminds/glide'
9-
packages:
10-
- libarchive-dev
11-
- glide
12-
131
matrix:
142
include:
15-
- go: "1.10.x"
16-
install:
3+
- language: go
4+
go:
5+
- "1.11.x"
6+
addons:
7+
apt:
8+
sources:
9+
- sourceline: 'ppa:masterminds/glide'
10+
packages:
11+
- libarchive-dev
12+
- glide
13+
env:
14+
- GO111MODULE=on
15+
go_import_path: github.com/UpdateHub/updatehub-ce
16+
install: true
17+
before_install:
1718
- glide install
1819
script: go test -v ./...
19-
- go: "1.11.x"
20-
script: go test -v ./...
21-
allow_failures:
22-
- go: master
23-
24-
env:
25-
- GO111MODULE=on
26-
27-
install: true
20+
- language: node_js
21+
node_js:
22+
- "12.0"
23+
before_install:
24+
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version "1.15.2"
25+
- export PATH="$HOME/.yarn/bin:$PATH"
26+
- cd ui
27+
install:
28+
- yarn install
29+
script:
30+
- yarn run lint --no-fix

ui/src/components/PackageDetails.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,17 +125,17 @@ export default {
125125
return this.$http
126126
.get('/api/packages/' + this.$route.params.uid)
127127
.then(res => {
128-
return res.data;
129-
});
128+
return res.data
129+
})
130130
},
131131
132-
deletePackage() {
132+
deletePackage () {
133133
this.$http
134-
.delete("/api/packages/" + this.$route.params.uid + "/delete")
135-
.then(res => {
136-
this.$router.push("/packages");
137-
});
138-
},
134+
.delete('/api/packages/' + this.$route.params.uid + '/delete')
135+
.then(res => {
136+
this.$router.push('/packages')
137+
})
138+
}
139139
},
140140
141141
filters: {

ui/src/main.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ import RolloutList from './components/RolloutList'
1313
import RolloutNew from './components/RolloutNew'
1414
import RolloutDetails from './components/RolloutDetails'
1515

16-
function errorResponseHandler(error) {
16+
function errorResponseHandler (error) {
1717
if (error.response.status === 401) {
18-
app.currentUser = null;
19-
router.push("/login?redirect=" + "/")
18+
app.currentUser = null
19+
router.push('/login?redirect=' + '/')
2020
}
2121
}
2222

2323
Axios.interceptors.response.use(
2424
response => response,
2525
errorResponseHandler
26-
);
26+
)
2727

28-
Vue.config.productionTip = false;
28+
Vue.config.productionTip = false
2929

3030
Vue.prototype.$http = Axios
3131

0 commit comments

Comments
 (0)