Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.
/ Orion Public archive

Distinguish between errors coming from releases and errors coming from development #96

Merged
merged 1 commit into from
May 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ stages:
- test
- release

before_script:
- mv package.json package.json.old
- cat package.json.old | jq 'to_entries | map(if .key == "env" then .value = "release" else . end) | from_entries' > package.json
- rm -f package.json.old

yarn-test:
stage: test
tags:
Expand Down
3 changes: 1 addition & 2 deletions app/report.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
const pjson = require('../package.json')
const { init } = require('@sentry/electron')
const { env } = require('process')

init({
dsn: 'https://[email protected]/1189440',
release: `${pjson.version}/IPFS-${pjson.ipfsVersion}`,
environment: `${env.NODE_ENV}`
environment: `${pjson.env}`
})
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "Orion",
"version": "0.2.2",
"env": "development",
"ipfsVersion": "v0.4.14",
"description": "Orion is an easy-to-use and KISS IPFS desktop interface",
"main": "app/entry.js",
Expand Down