This repository has been archived by the owner on Jul 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
chore: Switch to gitlab #320
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b1ec4af
Add gitlab v1
amaury1093 4553899
Trigger CI
amaury1093 ba795ea
Remove travis
amaury1093 c355a6f
rename gitlab-ci.yml to .gitlab-ci.yml
gabreal 24878cf
fix indentation
gabreal c2435b8
Run lint & build in test phase
amaury1093 d94fdac
Build before lint
amaury1093 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
stages: | ||
- test | ||
- build | ||
|
||
variables: | ||
GIT_DEPTH: '3' | ||
SIMPLECOV: 'true' | ||
RUST_BACKTRACE: '1' | ||
RUSTFLAGS: '' | ||
CARGOFLAGS: '' | ||
|
||
cache: | ||
key: '${CI_JOB_NAME}' | ||
paths: | ||
- node_modules/ | ||
- packages/*/node_modules/ | ||
|
||
.branches: &branches | ||
only: | ||
- tags | ||
- triggers | ||
- master | ||
|
||
linux-test: | ||
stage: test | ||
image: node:10 | ||
script: | ||
- curl -o- -L https://yarnpkg.com/install.sh | bash | ||
- export PATH=$HOME/.yarn/bin:$PATH | ||
- yarn install | ||
- yarn test | ||
- yarn build | ||
- yarn lint | ||
tags: | ||
- linux-docker | ||
|
||
linux-build: | ||
stage: build | ||
image: node:10 | ||
<<: *branches | ||
script: | ||
- curl -o- -L https://yarnpkg.com/install.sh | bash | ||
- export PATH=$HOME/.yarn/bin:$PATH | ||
- yarn install | ||
- yarn build | ||
- yarn fetch-substrate | ||
- yarn release --linux | ||
tags: | ||
- linux-docker | ||
artifacts: | ||
expire_in: 1 week | ||
paths: | ||
- 'packages/electron-app/dist/*.AppImage' | ||
- 'packages/electron-app/dist/*.tar.xz' | ||
- 'packages/electron-app/dist/*.snap' | ||
- 'packages/electron-app/dist/*.deb' | ||
|
||
osx-build: | ||
stage: build | ||
<<: *branches | ||
script: | ||
- curl -o- -L https://yarnpkg.com/install.sh | bash | ||
- export PATH=$HOME/.yarn/bin:$PATH | ||
- yarn install | ||
- yarn build | ||
- yarn fetch-substrate | ||
- yarn release --mac | ||
tags: | ||
- darwin-shell | ||
artifacts: | ||
expire_in: 1 week | ||
paths: | ||
- 'packages/electron-app/dist/*.dmg' | ||
- 'packages/electron-app/dist/*.zip' | ||
|
||
win-build: | ||
stage: build | ||
image: electronuserland/builder:wine | ||
<<: *branches | ||
script: | ||
- yarn install | ||
- yarn build | ||
- yarn fetch-substrate # FIXME This should fetch a windows substrate | ||
- yarn release --win | ||
tags: | ||
- linux-docker | ||
artifacts: | ||
expire_in: 1 week | ||
paths: | ||
- 'packages/electron-app/dist/*.exe' |
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what to do for now... I'd say we just leave it like this, and remove the .exe manually from the releases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure whether substrate even builds on win. It can be tried and uploaded to a bucket if needed.