Skip to content

Commit

Permalink
Cleanup CIs (#10078)
Browse files Browse the repository at this point in the history
* Remove Travis CI
* Ad GitHub Actions badges
* Remove check_format from Circle CI and nightly
* Remove test_all_platforms from Circle CI 
* Add deploy API docs GitHub Action

Co-authored-by: Brian J. Cardiff <bcardiff@gmail.com>
  • Loading branch information
j8r and bcardiff authored Dec 18, 2020
1 parent 935476e commit 12bf665
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 105 deletions.
62 changes: 3 additions & 59 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,34 +136,6 @@ jobs:
- store_artifacts:
path: ~/test-results/spec

check_format:
machine: true
environment:
<<: *env
TRAVIS_OS_NAME: linux
ARCH: x86_64
ARCH_CMD: linux64
steps:
- checkout
- run: bin/ci prepare_system
- run: echo 'export CURRENT_TAG="$CIRCLE_TAG"' >> $BASH_ENV
- run: bin/ci prepare_build
- run: bin/ci format

sync_docs_s3:
machine: true
steps:
- attach_workspace:
at: /tmp/workspace
- run: |
echo $CIRCLE_SHA1 > /tmp/workspace/docs/revision.txt
- run: |
docker run -v /tmp/workspace/docs:/docs \
-e AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} \
-e AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} \
mesosphere/aws-cli \
s3 sync /docs/ s3://crystal-api/api/master --delete
prepare_common:
docker:
- image: docker:stable-git
Expand Down Expand Up @@ -538,33 +510,6 @@ jobs:

workflows:
version: 2
test_all_platforms:
jobs:
- test_linux:
filters: &unless_maintenance
branches:
ignore:
- /release\/.+/
- /package\/.+/
- /.*\bci\b.*/
- test_linux32_std:
filters: *unless_maintenance
- test_alpine:
filters: *unless_maintenance
# - test_darwin:
# filters: *unless_maintenance
- test_preview_mt:
filters: *unless_maintenance
- check_format:
filters: *unless_maintenance
- sync_docs_s3:
filters:
branches:
only:
- master
requires:
- test_linux

tagged_release:
jobs:
- test_linux:
Expand All @@ -577,7 +522,7 @@ workflows:
filters: *per_tag
- test_alpine:
filters: *per_tag
# - test_darwin:
# - test_darwin: # See https://github.com/crystal-lang/crystal/pull/9763
# filters: *per_tag
- test_preview_mt:
filters: *per_tag
Expand Down Expand Up @@ -652,9 +597,8 @@ workflows:
- test_linux
- test_linux32_std
- test_alpine
# - test_darwin
# - test_darwin # See https://github.com/crystal-lang/crystal/pull/9763
- test_preview_mt
- check_format
- prepare_common
- prepare_nightly:
requires:
Expand Down Expand Up @@ -716,7 +660,7 @@ workflows:
filters: *maintenance
- test_alpine:
filters: *maintenance
# - test_darwin:
# - test_darwin: # See https://github.com/crystal-lang/crystal/pull/9763
# filters: *maintenance
- test_preview_mt:
filters: *maintenance
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,36 @@ jobs:

- name: Check Format
run: bin/ci format

deploy_api_docs:
if: github.repository_owner == 'crystal-lang' && github.event_name == 'push' && github.ref == 'refs/heads/master'
env:
ARCH: x86_64
ARCH_CMD: linux64
runs-on: ubuntu-latest
steps:
- name: Download Crystal source
uses: actions/checkout@v2

- name: Prepare System
run: bin/ci prepare_system

- name: Prepare Build
run: bin/ci prepare_build

- name: Build docs
run: bin/ci with_build_env 'make crystal docs threads=1'

- name: Set revision
run: echo $GITHUB_SHA > ./docs/revision.txt

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Deploy API docs to S3
run: |
aws s3 sync ./docs s3://crystal-api/api/master --delete
45 changes: 0 additions & 45 deletions .travis.yml

This file was deleted.

5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Crystal

[![Travis CI Build Status](https://travis-ci.org/crystal-lang/crystal.svg)](https://travis-ci.org/crystal-lang/crystal)
[![Linux CI](https://github.com/crystal-lang/crystal/workflows/Linux%20CI/badge.svg)](https://github.com/crystal-lang/crystal/actions?query=workflow%3A%22Linux+CI%22+event%3Apush+branch%3Amaster)
[![macOS CI](https://github.com/crystal-lang/crystal/workflows/macOS%20CI/badge.svg)](https://github.com/crystal-lang/crystal/actions?query=workflow%3A%22macOS+CI%22+event%3Apush+branch%3Amaster)
[![AArch64 CI](https://github.com/crystal-lang/crystal/workflows/AArch64%20CI/badge.svg)](https://github.com/crystal-lang/crystal/actions?query=workflow%3A%22AArch64+CI%22+event%3Apush+branch%3Amaster)
[![Windows CI](https://github.com/crystal-lang/crystal/workflows/Windows%20CI/badge.svg)](https://github.com/crystal-lang/crystal/actions?query=workflow%3A%22Windows+CI%22+event%3Apush+branch%3Amaster)
[![CircleCI Build Status](https://circleci.com/gh/crystal-lang/crystal/tree/master.svg?style=shield)](https://circleci.com/gh/crystal-lang/crystal)
[![Join the chat at https://gitter.im/crystal-lang/crystal](https://badges.gitter.im/crystal-lang/crystal.svg)](https://gitter.im/crystal-lang/crystal)
[![Code Triagers Badge](https://www.codetriage.com/crystal-lang/crystal/badges/users.svg)](https://www.codetriage.com/crystal-lang/crystal)
Expand Down

0 comments on commit 12bf665

Please sign in to comment.