Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

chore: Switch to gitlab #320

Merged
merged 7 commits into from
May 13, 2019
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
90 changes: 90 additions & 0 deletions .gitlab-ci.yml
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
Copy link
Contributor Author

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

Copy link

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.

- yarn release --win
tags:
- linux-docker
artifacts:
expire_in: 1 week
paths:
- 'packages/electron-app/dist/*.exe'
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.