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

CI: Install sysconfcpus #25

Merged
merged 2 commits into from Jun 11, 2018
Merged
Changes from all 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
14 changes: 11 additions & 3 deletions .circleci/config.yml
Expand Up @@ -10,18 +10,26 @@ jobs:
- v3-cache-{{ arch }}-{{ .Branch }}-{{ checksum "package-lock.json" }}-{{ checksum "elm-package.json" }}-{{ checksum "tests/elm-package.json" }}
- v3-cache-{{ arch }}-{{ .Branch }}
- v3-cache-{{ arch }}
- run:
name: Install sysconfcpus to fix core count detection
command: |
git clone https://github.com/obmarg/libsysconfcpus.git;
cd libsysconfcpus;
./configure;
make && make install;
cd ..;
- run:
name: Install npm dependencies
command: npm install
- run:
name: Install elm dependencies
command: elm-make --yes
command: sysconfcpus -n 2 elm-make --yes
- run:
name: Build project
command: make dist
command: sysconfcpus -n 2 make dist
- run:
name: Test project
command: make test
command: sysconfcpus -n 2 make test
- save_cache:
key: v3-cache-{{ arch }}-{{ .Branch }}-{{ checksum "package-lock.json" }}-{{ checksum "elm-package.json" }}-{{ checksum "tests/elm-package.json" }}
paths:
Expand Down