Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 333b74d

Browse files
authored
Merge pull request #83 from AtomLinter/add-ci
Add CircleCI support
2 parents 7285563 + b7959bb commit 333b74d

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

circle.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
dependencies:
2+
cache_directories:
3+
- ~/.asdf
4+
override:
5+
# Download and make executable the Atom script
6+
- curl -s -O https://raw.githubusercontent.com/atom/ci/master/build-package.sh
7+
- chmod u+x build-package.sh
8+
# Install and setup Elixir
9+
- if ! asdf | grep version; then git clone --depth 1 https://github.com/HashNuke/asdf.git ~/.asdf; fi
10+
- if ! asdf plugin-list | grep erlang; then asdf plugin-add erlang https://github.com/HashNuke/asdf-erlang.git; fi
11+
- if ! asdf plugin-list | grep elixir; then asdf plugin-add elixir https://github.com/HashNuke/asdf-elixir.git; fi
12+
- echo "erlang 19.2" >> .tool-versions
13+
- echo "elixir 1.4.0" >> .tool-versions
14+
- erlang_version=$(awk '/erlang/ { print $2 }' .tool-versions) && asdf install erlang ${erlang_version}
15+
- elixir_version=$(awk '/elixir/ { print $2 }' .tool-versions) && asdf install elixir ${elixir_version}
16+
17+
test:
18+
override:
19+
- elixir --version
20+
- ./build-package.sh
21+
22+
machine:
23+
environment:
24+
APM_TEST_PACKAGES: "language-elixir"
25+
PATH: "$HOME/.asdf/bin:$HOME/.asdf/shims:$PATH"

0 commit comments

Comments
 (0)