Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1910 use atom image #1911

Merged
merged 10 commits into from
Oct 24, 2022
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
26 changes: 5 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,38 +123,22 @@ jobs:
APM_TEST_PACKAGES: ''
ATOM_CHANNEL: 'stable'
docker:
- image: circleci/node:latest
- image: arcanemagus/atom-docker-ci
steps:
- attach_workspace:
at: /tmp
- run:
name: Restore build
command: rmdir ~/calva && cp -r /tmp/build ~/calva
- run:
name: Update system package lists
command: sudo apt-get update
- run:
name: Install some pre-requisite packages
command: sudo apt-get --assume-yes --quiet install curl xvfb libasound2 libgbm-dev
- run:
name: Start display server for Atom
command: /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x16 +extension RANDR
background: true
- run:
name: Download Atom build script
command: |
cd src/calva-fmt/atom-language-clojure
curl -s -OL https://raw.githubusercontent.com/atom/ci/master/build-package.sh
- run:
name: Make build script executable
command: |
cd src/calva-fmt/atom-language-clojure
chmod u+x build-package.sh
- run:
name: Run package tests
command: |
cd src/calva-fmt/atom-language-clojure
./build-package.sh
./run-grammar-tests.sh
- save_cache:
name: Save dependencies
key: ts-{{ checksum "package.json" }}-cljs-{{ checksum "shadow-cljs.edn" }}-grammar-{{ checksum "src/calva-fmt/atom-language-clojure/package.json" }}
Expand Down Expand Up @@ -433,15 +417,15 @@ workflows:
- prettier-check:
requires:
- checkout
- test-grammar:
requires:
- checkout
- build:
requires:
- checkout
- eslint-check:
requires:
- build
- test-grammar:
requires:
- build
- test-cljslib:
requires:
- build
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,8 @@ output.calva-repl
# Calva dev
clojure.tmLanguage.json
.cpcache/
backup/
backup/

# Calva grammars (running the atom-ci docker image locally)
src/calva-fmt/atom-language-clojure/.cache/
src/calva-fmt/atom-language-clojure/.bash_history
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ Changes to Calva.

## [Unreleased]

- [Refactor
`extension.ts` for less boilerplate and improved readability](https://github.com/BetterThanTomorrow/calva/issues/1906)
- Calva development: [Refactor `extension.ts` for less boilerplate and improved readability](https://github.com/BetterThanTomorrow/calva/issues/1906)
- Calva development, Fix: [Docs publishing in CI is failing](https://github.com/BetterThanTomorrow/calva/issues/1909)
- Calva development, Fix: [Grammar tests fail too often](https://github.com/BetterThanTomorrow/calva/issues/1910)

## [2.0.309] - 2022-10-22

Expand Down
7 changes: 7 additions & 0 deletions src/calva-fmt/atom-language-clojure/.atom/.apm/.apmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
; This file is auto-generated and should not be edited since any
; modifications will be lost the next time any apm command is run.
;
; You should instead edit your .apmrc config located in ~/.atom/.apmrc
cache = /home/atom/.atom/.apm
; Hide progress-bar to prevent npm from altering apm console output.
progress = false
1 change: 1 addition & 0 deletions src/calva-fmt/atom-language-clojure/.atom/config.cson
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
8 changes: 8 additions & 0 deletions src/calva-fmt/atom-language-clojure/run-grammar-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

ATOM_SCRIPT_PATH="apm"

echo "Running specs..."
"${ATOM_SCRIPT_PATH}" test spec

exit