Skip to content

Commit

Permalink
fixing CircleCI config file (pytorch#30)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#30

Now we run circleCI build and tests for fbgemm on every commit. See the status at https://circleci.com/gh/pytorch/FBGEMM/tree/master

Protonu Basu: See this for adding doc pushing diffusion/FBS/browse/master/fbcode/caffe2/.circleci/config.yml;5c250602d2da8f25f04276ed7732c874c660a29c$607-682

Reviewed By: protonu

Differential Revision: D13271398

fbshipit-source-id: 401c415e9b15346f8fd301e550140a28d150f2e0
  • Loading branch information
dskhudia authored and facebook-github-bot committed Nov 30, 2018
1 parent 4e9fa6c commit 1db75f6
Showing 1 changed file with 34 additions and 6 deletions.
40 changes: 34 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,43 @@ jobs:
- checkout

- run:
name: Configure FBGEMM
command: mkdir build && cd build && cmake ../
name: Install prerequisites
command: |
set -e
apt-get update -y
apt-get update
apt-get -qq install cmake -y
- run:
name: Build FBGEMM
command: make -j
name: Build FBGEMM static lib
command: |
set -e
mkdir build_static
cd build_static
cmake -DCMAKE_INSTALL_PREFIX=/root/project/install -DFBGEMM_LIBRARY_TYPE=static ../
make -j
make install
- run:
name: Test FBGEMM
command: ctest
name: Test FBGEMM static lib
command: |
set -e
cd build_static
ctest --verbose
- run:
name: Build FBGEMM shared lib
command: |
set -e
mkdir build_shared
cd build_shared
cmake -DCMAKE_INSTALL_PREFIX=/root/project/install -DFBGEMM_LIBRARY_TYPE=shared ../
make -j
make install
- run:
name: Test FBGEMM shared lib
command: |
set -e
cd build_shared
ctest --verbose

0 comments on commit 1db75f6

Please sign in to comment.