Skip to content

Commit

Permalink
travis: add linter
Browse files Browse the repository at this point in the history
Signed-off-by: Luis Gustavo S. Barreto <gustavo@ossystems.com.br>
  • Loading branch information
gustavosbarreto committed Apr 29, 2019
1 parent c0e6d02 commit c490eb0
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 36 deletions.
49 changes: 26 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
language: go

go_import_path: github.com/UpdateHub/updatehub-ce

addons:
apt:
sources:
- sourceline: 'ppa:masterminds/glide'
packages:
- libarchive-dev
- glide

matrix:
include:
- go: "1.10.x"
install:
- language: go
go:
- "1.11.x"
addons:
apt:
sources:
- sourceline: 'ppa:masterminds/glide'
packages:
- libarchive-dev
- glide
env:
- GO111MODULE=on
go_import_path: github.com/UpdateHub/updatehub-ce
install: true
before_install:
- glide install
script: go test -v ./...
- go: "1.11.x"
script: go test -v ./...
allow_failures:
- go: master

env:
- GO111MODULE=on

install: true
- language: node_js
node_js:
- "12.0"
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version "1.15.2"
- export PATH="$HOME/.yarn/bin:$PATH"
- cd ui
install:
- yarn install
script:
- yarn run lint --no-fix
16 changes: 8 additions & 8 deletions ui/src/components/PackageDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,17 +125,17 @@ export default {
return this.$http
.get('/api/packages/' + this.$route.params.uid)
.then(res => {
return res.data;
});
return res.data
})
},
deletePackage() {
deletePackage () {
this.$http
.delete("/api/packages/" + this.$route.params.uid + "/delete")
.then(res => {
this.$router.push("/packages");
});
},
.delete('/api/packages/' + this.$route.params.uid + '/delete')
.then(res => {
this.$router.push('/packages')
})
}
},
filters: {
Expand Down
10 changes: 5 additions & 5 deletions ui/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ import RolloutList from './components/RolloutList'
import RolloutNew from './components/RolloutNew'
import RolloutDetails from './components/RolloutDetails'

function errorResponseHandler(error) {
function errorResponseHandler (error) {
if (error.response.status === 401) {
app.currentUser = null;
router.push("/login?redirect=" + "/")
app.currentUser = null
router.push('/login?redirect=' + '/')
}
}

Axios.interceptors.response.use(
response => response,
errorResponseHandler
);
)

Vue.config.productionTip = false;
Vue.config.productionTip = false

Vue.prototype.$http = Axios

Expand Down

0 comments on commit c490eb0

Please sign in to comment.