2019-03-15 22:14:37 +00:00
kind : pipeline
2020-06-17 15:54:19 +00:00
type : docker
2019-03-15 22:14:37 +00:00
name : testing
workspace :
2020-01-12 12:59:28 +00:00
base : /home/cirrus/app
2019-03-15 22:14:37 +00:00
clone :
depth : 50
2020-01-12 12:59:28 +00:00
# Only run on prs or pushes to master
trigger :
branch :
include :
- master
event :
include :
- push
- pull_request
2019-03-15 22:14:37 +00:00
steps :
- name : build
2020-01-12 12:59:28 +00:00
image : cirrusci/flutter:stable
2019-03-15 22:14:37 +00:00
pull : true
commands :
- flutter packages get
- make format-check
- make build-debug
2020-06-16 00:18:09 +02:00
# Don't run tests until we have to not break the pipeline
# - name: test
# image: cirrusci/flutter:stable
# pull: true
# commands:
# - flutter packages get
# - make test
2019-03-15 22:14:37 +00:00
---
kind : pipeline
2020-06-17 15:54:19 +00:00
type : docker
2019-03-15 22:14:37 +00:00
name : release-latest
depends_on :
- testing
trigger :
branch :
2020-01-12 12:59:28 +00:00
- master
2019-03-15 22:14:37 +00:00
event :
2020-01-12 12:59:28 +00:00
- push
2019-03-15 22:14:37 +00:00
2018-09-23 10:41:28 +00:00
workspace :
2020-01-12 12:59:28 +00:00
base : /home/cirrus/app
2018-09-23 10:41:28 +00:00
clone :
2019-03-15 22:14:37 +00:00
depth : 50
steps :
# Because drone separates the pipelines, we have to add the build step to this pipeline. This is double code, we should change it at some point if possible.
- name : build
2020-01-12 12:59:28 +00:00
image : cirrusci/flutter:stable
2019-03-15 22:14:37 +00:00
pull : true
commands :
2020-01-12 12:59:28 +00:00
- flutter packages get
- make build-all
- mkdir apks
- mv build/app/outputs/apk/*/*/*.apk apks
2019-03-15 22:14:37 +00:00
# Push the releases to our pseudo-s3-bucket
- name : release
2018-09-23 10:41:28 +00:00
image : plugins/s3:1
pull : true
2019-03-15 22:14:37 +00:00
settings :
2020-12-26 18:42:53 +01:00
bucket : vikunja-releases
2019-03-15 22:14:37 +00:00
access_key :
from_secret : aws_access_key_id
secret_key :
from_secret : aws_secret_access_key
2020-12-26 18:42:53 +01:00
endpoint : https://s3.fr-par.scw.cloud
region : fr-par
2019-03-15 22:14:37 +00:00
path_style : true
strip_prefix : apks/
source : apks/*
2020-03-01 22:56:05 +01:00
target : /app/master
2019-03-15 22:14:37 +00:00
---
kind : pipeline
2020-06-17 15:54:19 +00:00
type : docker
2019-03-15 22:14:37 +00:00
name : release-version
depends_on :
- testing
trigger :
event :
2020-01-12 12:59:28 +00:00
- tag
2019-03-15 22:14:37 +00:00
workspace :
2020-01-12 12:59:28 +00:00
base : /home/cirrus/app
2019-03-15 22:14:37 +00:00
clone :
depth : 50
steps :
# Because drone separates the pipelines, we have to add the build step to this pipeline. This is double code, we should change it at some point if possible.
- name : build
2020-01-12 12:59:28 +00:00
image : cirrusci/flutter:stable
2019-03-15 22:14:37 +00:00
pull : true
commands :
2020-01-12 12:59:28 +00:00
- flutter packages get
- make build-all
- mkdir apks
- mv build/app/outputs/apk/*/*/*.apk apks
2019-03-15 22:14:37 +00:00
# Push the releases to our pseudo-s3-bucket
- name : release
2018-09-23 10:41:28 +00:00
image : plugins/s3:1
pull : true
2019-03-15 22:14:37 +00:00
settings :
2020-12-26 18:42:53 +01:00
bucket : vikunja-releases
2019-03-15 22:14:37 +00:00
access_key :
from_secret : aws_access_key_id
secret_key :
from_secret : aws_secret_access_key
2020-12-26 18:42:53 +01:00
endpoint : https://s3.fr-par.scw.cloud
region : fr-par
2019-03-15 22:14:37 +00:00
path_style : true
strip_prefix : apks/
source : apks/*
2020-03-01 22:56:05 +01:00
target : /app/${DRONE_TAG##v}
2020-06-17 15:54:19 +00:00
---
kind : pipeline
type : exec
name : release-ios
trigger :
event :
- push
branch :
- master
platform :
os : darwin
arch : amd64
steps :
- name : build
commands :
- make build-ios
environment :
HOME : /Users/buildslave
- name : deploy
environment :
HOME : /Users/buildslave
LC_ALL : en_US.UTF-8
LANG : en_US.UTF-8
FASTLANE_SKIP_UPDATE_CHECK : true
FASTLANE_HIDE_CHANGELOG : true
MATCH_PASSWORD :
from_secret : match_password
FASTLANE_PASSWORD :
from_secret : fastlane_password
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD :
from_secret : fastlane_apple_password
FASTLANE_SESSION :
from_secret : fastlane_session
KEYCHAIN_PASSWORD :
from_secret : keychain_password
2020-06-24 08:37:29 +00:00
CONTACT_EMAIL :
from_secret : contact_email
CONTACT_FIRST_NAME :
from_secret : contact_first_name
CONTACT_LAST_NAME :
from_secret : contact_last_name
CONTACT_PHONE :
from_secret : contact_phone
2020-06-17 15:54:19 +00:00
commands :
2021-01-16 19:07:10 +01:00
- eval "$(rbenv init -)"
2021-01-16 19:01:36 +01:00
- rbenv shell 2.5.0
2020-06-17 15:54:19 +00:00
- cd ios
2021-01-16 18:15:34 +01:00
- bundle config set --local path '.vendor/bundle'
2021-01-16 18:10:34 +01:00
- bundle install
- bundle exec fastlane ios signing
- bundle exec fastlane ios beta
2020-06-17 15:54:19 +00:00
2021-01-17 15:52:04 +01:00
depends_on :
- testing