Commit Graph

7 Commits

Author SHA1 Message Date
Kazuhiro MUSASHI dfd6e53df4 Change the path-to-public directory:
```
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -10,4 +10,4 @@ jobs:
           name: "Run Hugo"
           command: HUGO_ENV=production hugo -v -s /root/project/
       - store_artifacts:
-          path: /tmp/artifacts
+          path: /root/project/public
```
2019-05-04 19:07:42 +08:00
Kazuhiro MUSASHI 9673dfe93e Use artifacts to see the results:
```
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -9,3 +9,5 @@ jobs:
       - run:
           name: "Run Hugo"
           command: HUGO_ENV=production hugo -v -s /root/project/
+      - store_artifacts:
+          path: /tmp/artifacts
```
2019-05-04 19:06:21 +08:00
Kazuhiro MUSASHI a348722bea Delete `Test Website`:
```
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -9,7 +9,3 @@ jobs:
       - run:
           name: "Run Hugo"
           command: HUGO_ENV=production hugo -v -s /root/project/
-      - run:
-          name: "Test Website"
-          command: htmlproofer /root/project/public --allow-hash-href --check-html --empty-alt-ignore --disable-external
-
```
2019-05-04 19:01:44 +08:00
Kazuhiro MUSASHI 3273955767 Change the path-to-public-directory:
```
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -11,5 +11,5 @@ jobs:
           command: HUGO_ENV=production hugo -v -s /root/project/
       - run:
           name: "Test Website"
-          command: htmlproofer src/public --allow-hash-href --check-html --empty-alt-ignore --disable-external
+          command: htmlproofer /root/project/public --allow-hash-href --check-html --empty-alt-ignore --disable-external
```
2019-05-04 18:59:31 +08:00
Kazuhiro MUSASHI c52c1d60d8 Change the path-to-checkout directory:
```
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -8,7 +8,7 @@ jobs:
       - checkout
       - run:
           name: "Run Hugo"
-          command: HUGO_ENV=production hugo -v -s src/
+          command: HUGO_ENV=production hugo -v -s /root/project/
       - run:
           name: "Test Website"
           command: htmlproofer src/public --allow-hash-href --check-html --empty-alt-ignore --disable-external
```
2019-05-04 18:57:02 +08:00
Kazuhiro MUSASHI 4307a8de8a Use `cibuilds/hugo:latest`:
```
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -2,16 +2,14 @@ version: 2
 jobs:
   build:
     docker:
-      - image: debian:stretch
+      - image: cibuilds/hugo:latest

     steps:
       - checkout
-
       - run:
-          name: Greeting
-          command: echo Hello, world.
-
+          name: "Run Hugo"
+          command: HUGO_ENV=production hugo -v -s src/
       - run:
-          name: Print the Current Time
-          command: date
+          name: "Test Website"
+          command: htmlproofer src/public --allow-hash-href --check-html --empty-alt-ignore --disable-external
```
2019-05-04 18:49:31 +08:00
Kazuhiro MUSASHI 003a943a1d Add sample `config.yml`:
```
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,16 @@
+version: 2
+jobs:
+  build:
+    docker:
+      - image: debian:stretch
+
+    steps:
+      - checkout
+
+      - run:
+        name: Greeting
+        command: echo Hello, world.
+
+      - run:
+        name: Print the Current Time
+        command: date
```
2019-05-04 18:38:50 +08:00