Skip to content

Commit

Permalink
Use arcanemagus/atom-docker-ci
Browse files Browse the repository at this point in the history
Trying to fix #1910
  • Loading branch information
PEZ committed Oct 24, 2022
1 parent 6ea5c3d commit 8b7996a
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 19 deletions.
36 changes: 18 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,38 +123,38 @@ 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: 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: 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
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,7 @@ output.calva-repl
# Calva dev
clojure.tmLanguage.json
.cpcache/
backup/
backup/

# Calva grammars
src/calva-fmt/atom-language-clojure/.cache/
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

0 comments on commit 8b7996a

Please sign in to comment.