[ci] Update
This commit is contained in:
parent
8b4f4dda89
commit
89f4e26bec
|
@ -1,85 +0,0 @@
|
||||||
version: 2
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
working_directory: ~/dkhamsing/open-source-ios-apps
|
|
||||||
parallelism: 1
|
|
||||||
shell: /bin/bash --login
|
|
||||||
environment:
|
|
||||||
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
|
|
||||||
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
|
|
||||||
docker:
|
|
||||||
- image: circleci/build-image:ubuntu-14.04-XXL-upstart-1189-5614f37
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
|
|
||||||
- run:
|
|
||||||
working_directory: ~/dkhamsing/open-source-ios-apps
|
|
||||||
command: rm -f dkhamsing/open-source-ios-apps/.rvmrc; echo 2.4.0 > dkhamsing/open-source-ios-apps/.ruby-version; rvm use 2.4.0 --default
|
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- v1-dep-{{ .Branch }}-
|
|
||||||
- v1-dep-master-
|
|
||||||
- v1-dep-
|
|
||||||
- save_cache:
|
|
||||||
key: v1-dep-{{ .Branch }}-{{ epoch }}
|
|
||||||
paths:
|
|
||||||
- vendor/bundle
|
|
||||||
- ~/virtualenvs
|
|
||||||
- ~/.m2
|
|
||||||
- ~/.ivy2
|
|
||||||
- ~/.bundle
|
|
||||||
- ~/.go_workspace
|
|
||||||
- ~/.gradle
|
|
||||||
- ~/.cache/bower
|
|
||||||
- run: gem install json_schema
|
|
||||||
- run: validate-schema .github/schema.json contents.json
|
|
||||||
- run: ruby .github/osia_validate_categories.rb
|
|
||||||
- store_test_results:
|
|
||||||
path: /tmp/circleci-test-results
|
|
||||||
# Save artifacts
|
|
||||||
- store_artifacts:
|
|
||||||
path: /tmp/circleci-artifacts
|
|
||||||
- store_artifacts:
|
|
||||||
path: /tmp/circleci-test-results
|
|
||||||
deploy:
|
|
||||||
working_directory: ~/dkhamsing/open-source-ios-apps
|
|
||||||
parallelism: 1
|
|
||||||
shell: /bin/bash --login
|
|
||||||
docker:
|
|
||||||
- image: circleci/build-image:ubuntu-14.04-XXL-upstart-1189-5614f37
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- run:
|
|
||||||
working_directory: ~/dkhamsing/open-source-ios-apps
|
|
||||||
command: rm -f dkhamsing/open-source-ios-apps/.rvmrc; echo 2.4.0 > dkhamsing/open-source-ios-apps/.ruby-version; rvm use 2.4.0 --default
|
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- v1-dep-{{ .Branch }}-
|
|
||||||
- v1-dep-master-
|
|
||||||
- v1-dep-
|
|
||||||
- save_cache:
|
|
||||||
key: v1-dep-{{ .Branch }}-{{ epoch }}
|
|
||||||
paths:
|
|
||||||
- vendor/bundle
|
|
||||||
- ~/virtualenvs
|
|
||||||
- ~/.m2
|
|
||||||
- ~/.ivy2
|
|
||||||
- ~/.bundle
|
|
||||||
- ~/.go_workspace
|
|
||||||
- ~/.gradle
|
|
||||||
- ~/.cache/bower
|
|
||||||
- run: ruby .github/osia_convert.rb
|
|
||||||
- run: ./.github/deploy.sh
|
|
||||||
- run: gem install delete_my_tweets
|
|
||||||
- run: ruby .github/osia_tweet_clean.rb
|
|
||||||
workflows:
|
|
||||||
version: 2
|
|
||||||
osia:
|
|
||||||
jobs:
|
|
||||||
- build
|
|
||||||
- deploy:
|
|
||||||
requires:
|
|
||||||
- build
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
only: master
|
|
|
@ -0,0 +1,43 @@
|
||||||
|
name: Pull Request
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ '*' ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ '*' ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Checks:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: 2.6
|
||||||
|
- name: Run scripts
|
||||||
|
run: |
|
||||||
|
ruby .github/osia_convert.rb
|
||||||
|
ruby .github/osia_validate_categories.rb
|
||||||
|
Links:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: 2.6
|
||||||
|
- name: Check links
|
||||||
|
run: |
|
||||||
|
gem install awesome_bot
|
||||||
|
ruby .github/osia_get_links.rb
|
||||||
|
awesome_bot check-unique.txt --allow-ssl -a 302,429 -w xbmc/xbmc
|
||||||
|
Schema:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: 2.6
|
||||||
|
- name: Check schema
|
||||||
|
run: |
|
||||||
|
gem install json_schema
|
||||||
|
validate-schema .github/schema.json contents.json
|
|
@ -0,0 +1,41 @@
|
||||||
|
name: README's Update
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Categories:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: 2.6
|
||||||
|
- name: Run scripts
|
||||||
|
run: ruby .github/osia_validate_categories.rb
|
||||||
|
Schema:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: 2.6
|
||||||
|
- name: Check schema
|
||||||
|
run: |
|
||||||
|
gem install json_schema
|
||||||
|
validate-schema .github/schema.json contents.json
|
||||||
|
Update:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: 2.6
|
||||||
|
- run: ruby .github/osia_convert.rb
|
||||||
|
- name: Push changes
|
||||||
|
uses: actions-go/push@v1
|
||||||
|
with:
|
||||||
|
force: true
|
||||||
|
author-name: READMEbot
|
||||||
|
commit-message: "[auto] [ci skip] Generate README's"
|
|
@ -1,25 +0,0 @@
|
||||||
name: Ruby
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ '*' ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ '*' ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Set up Ruby 2.6
|
|
||||||
uses: actions/setup-ruby@v1
|
|
||||||
with:
|
|
||||||
ruby-version: 2.6.x
|
|
||||||
- name: Checks
|
|
||||||
run: |
|
|
||||||
ruby .github/osia_convert.rb
|
|
||||||
gem install awesome_bot
|
|
||||||
ruby .github/osia_get_links.rb
|
|
||||||
awesome_bot check-unique.txt --allow-ssl -a 302,429 -w xbmc/xbmc
|
|
Loading…
Reference in New Issue