Browse Source

Add build directory for CI

Camilla Berglund 9 years ago
parent
commit
ebe88c3869
2 changed files with 6 additions and 2 deletions
  1. 3 1
      .appveyor.yml
  2. 3 1
      .travis.yml

+ 3 - 1
.appveyor.yml

@@ -10,7 +10,9 @@ environment:
 matrix:
 matrix:
     fast_finish: true
     fast_finish: true
 build_script:
 build_script:
-    - cmake -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS% .
+    - mkdir build
+    - cd build
+    - cmake -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS% ..
     - cmake --build .
     - cmake --build .
 notifications:
 notifications:
     - provider: Email
     - provider: Email

+ 3 - 1
.travis.yml

@@ -18,7 +18,9 @@ env:
     - BUILD_SHARED_LIBS=ON
     - BUILD_SHARED_LIBS=ON
     - BUILD_SHARED_LIBS=OFF
     - BUILD_SHARED_LIBS=OFF
 script:
 script:
-    - cmake -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} .
+    - mkdir build
+    - cd build
+    - cmake -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} ..
     - cmake --build .
     - cmake --build .
 notifications:
 notifications:
     email:
     email: