This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from AtomLinter/arcanemagus/maintenance
Maintenance
- Loading branch information
Showing
11 changed files
with
222 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
version: 2 | ||
|
||
defaults: &defaults | ||
working_directory: /tmp/project | ||
docker: | ||
- image: arcanemagus/atom-docker-ci:stable | ||
steps: | ||
# Restore project state | ||
- attach_workspace: | ||
at: /tmp | ||
- run: | ||
name: Install Julia v0.6.4 | ||
command: | | ||
curl -o julia.tar.gz --location --silent --show-error \ | ||
https://julialang-s3.julialang.org/bin/linux/x64/0.6/julia-0.6.4-linux-x86_64.tar.gz && \ | ||
mkdir julia && \ | ||
tar --extract --gzip --strip 1 --directory=julia --file=julia.tar.gz && \ | ||
echo 'export PATH="/tmp/project/julia/bin:$PATH"' >> $BASH_ENV | ||
- run: | ||
name: Julia version | ||
command: julia --version | ||
- run: | ||
name: Install Lint.jl | ||
# Note the "using Lint" is to pre-compile the cache | ||
command: julia -E 'Pkg.add("Lint"); using Lint;' | ||
- run: | ||
name: Lint.jl version | ||
command: julia -E 'Pkg.installed("Lint")' | ||
- run: | ||
name: Create VFB for Atom to run in | ||
command: /usr/local/bin/xvfb_start | ||
- run: | ||
name: Atom version | ||
command: ${ATOM_SCRIPT_PATH} --version | ||
- run: | ||
name: APM version | ||
command: ${APM_SCRIPT_PATH} --version | ||
- run: | ||
name: Package APM package dependencies | ||
command: | | ||
if [ -n "${APM_TEST_PACKAGES}" ]; then | ||
for pack in ${APM_TEST_PACKAGES}; do | ||
${APM_SCRIPT_PATH} install "${pack}" | ||
done | ||
fi; | ||
- run: | ||
name: Package dependencies | ||
command: ${APM_SCRIPT_PATH} install | ||
- run: | ||
name: Cleaning package | ||
command: ${APM_SCRIPT_PATH} clean | ||
- run: | ||
name: Package specs | ||
command: ${ATOM_SCRIPT_PATH} --test spec | ||
# Cache node_modules | ||
- save_cache: | ||
paths: | ||
- node_modules | ||
key: v1-dependencies-{{ .Branch }}-{{ checksum "package.json" }}-{{ checksum "package-lock.json"}} | ||
|
||
jobs: | ||
checkout_code: | ||
<<: *defaults | ||
docker: | ||
- image: circleci/node:latest | ||
steps: | ||
- checkout | ||
# Restore node_modules from the last build | ||
- restore_cache: | ||
keys: | ||
# Get latest cache for this package.json and package-lock.json | ||
- v1-dependencies-{{ .Branch }}-{{ checksum "package.json" }}-{{ checksum "package-lock.json"}} | ||
# Fallback to the current package.json | ||
- v1-dependencies-{{ .Branch }}-{{ checksum "package.json" }}- | ||
# Fallback to the last build for this branch | ||
- v1-dependencies-{{ .Branch }}- | ||
# Fallback to the last available master branch cache | ||
- v1-dependencies-master- | ||
# Don't go further down to prevent dependency issues from other branches | ||
# Save project state for next steps | ||
- persist_to_workspace: | ||
root: /tmp | ||
paths: | ||
- project | ||
lint: | ||
<<: *defaults | ||
docker: | ||
- image: circleci/node:lts | ||
steps: | ||
# Restore project state | ||
- attach_workspace: | ||
at: /tmp | ||
- run: | ||
name: Node.js Version | ||
command: node --version | ||
- run: | ||
name: NPM Version | ||
command: npm --version | ||
- run: | ||
name: Install any remaining dependencies | ||
command: npm install | ||
- run: | ||
name: Lint code | ||
command: npm run lint | ||
stable: | ||
<<: *defaults | ||
beta: | ||
<<: *defaults | ||
docker: | ||
- image: arcanemagus/atom-docker-ci:beta | ||
|
||
workflows: | ||
version: 2 | ||
test_package: | ||
jobs: | ||
- checkout_code | ||
- lint: | ||
requires: | ||
- checkout_code | ||
- stable: | ||
requires: | ||
- lint | ||
- beta: | ||
requires: | ||
- lint |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
function theQuestion() | ||
return question | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
function theAnswer() | ||
return 42 | ||
end |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.