Pārlūkot izejas kodu

circleci config fixes / circle integrate website

Summary: See title.

Reviewed By: JoelMarcey

Differential Revision: D6510632

fbshipit-source-id: ec5f1c18a2ee2296a3b7af4f7c99bd4f25e47222
Christian Puhrsch 8 gadi atpakaļ
vecāks
revīzija
33da63cab7
2 mainītis faili ar 14 papildinājumiem un 22 dzēšanām
  1. 13 21
      .circleci/config.yml
  2. 1 1
      CMakeLists.txt

+ 13 - 21
.circleci/config.yml

@@ -123,26 +123,18 @@ jobs:
           command: |
             . .circleci/gcc_test.sh
 
-  "website":
-    machine: true
-    machine:
-      node:
-        version: 6.10.3
-      npm:
-        version: 3.10.10 
-
-    test:
-      override:
-        - "true"
-    
-    deployment:
-      website:
-        branch: master
-        commands:
-          - git config --global user.email "[email protected]"
-          - git config --global user.name "Website Deployment Script"
-          - echo "machine github.com login cpuhrsch password $GITHUB_TOKEN" > ~/.netrc
-          - cd website && npm install && GIT_USER=cpuhrsch npm run publish-gh-pages
+  "website-build":
+    docker:
+      - image: node:latest
+    working_directory: ~/repo
+    steps:
+      - checkout
+      - run:
+          command: |
+            git config --global user.email "[email protected]"
+            git config --global user.name "Website Deployment Script"
+            echo "machine github.com login cpuhrsch password $GITHUB_TOKEN" > ~/.netrc
+            cd website && npm install && GIT_USER=cpuhrsch npm run publish-gh-pages
 
 workflows:
   version: 2
@@ -157,4 +149,4 @@ workflows:
       - "gcc6"
       - "gcc7"
       - "gcclatest"
-      - "website"
+      - "website-build"

+ 1 - 1
CMakeLists.txt

@@ -7,7 +7,7 @@
 # of patent rights can be found in the PATENTS file in the same directory.
 #
 
-cmake_minimum_required(VERSION 3.5.2)
+cmake_minimum_required(VERSION 3.0.2)
 project(fasttext)
 
 # The version number.