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

First attempt at CircleCI config #1087

Merged
merged 20 commits into from Feb 22, 2017
Merged
Changes from 16 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
25 changes: 25 additions & 0 deletions circle.yml
@@ -0,0 +1,25 @@
dependencies:
cache_directories:
- "~/.opam"
- "~/aptcache"
override:
- sudo add-apt-repository -y ppa:avsm/ppa
- sudo mkdir -p ~/aptcache/partial
- sudo touch ~/aptcache/lock
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the lock for?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I had to add this one time. Guess I could have done that via SSH. Can remove.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yunxing I am slightly worried that this could be an issue in the future if the cache gets wiped. I might add them back in with a comment.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tekknolagi ah, ok. Please feel free to add it back with a comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

- sudo chmod 640 ~/aptcache/lock
- sudo apt-get update -o dir::cache::archives="/home/ubuntu/aptcache" -y
- sudo apt-get install -o dir::cache::archives="/home/ubuntu/aptcache" -y ocaml ocaml-native-compilers opam
- opam init --auto-setup --dot-profile=~/.bashrc # Modify dotfiles
- opam switch 4.02.3
- eval `opam config env`
- opam update
- opam pin add -y reason .

compile:
override:
- make build

test:
override:
- make test
- git diff --exit-code