Commit Graph

14 Commits

Author SHA1 Message Date
Ariel Mashraki
3f1d942d3e ent/circleci: run codegen before running integration tests (#98)
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/98

Make sure templates are valid.

Reviewed By: alexsn

Differential Revision: D17933466

fbshipit-source-id: 70dca88cfeaa9d04f21e6a9364642f65b05c7c19
2019-10-15 12:29:28 -07:00
Alex Snast
9983309eac ent/circleci: cache / restore go modules (#86)
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/86

In addition rename run.deadline golangci-lint config to run.timeout

Reviewed By: a8m

Differential Revision: D17863321

fbshipit-source-id: f863bac6499ddd3066a3ec6e9f518c0d5156f117
2019-10-12 23:52:42 -07:00
Alex Snast
ce2bc07c1a ent/circleci: adding linter tests
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/80

Reviewed By: a8m

Differential Revision: D17837182

fbshipit-source-id: 9fb539fd6cebc064d2d2804bd52e0fbf413cfc93
2019-10-10 04:45:07 -07:00
Alex Snast
5c93cb823c ent/circleci: store go tests metadata (#63)
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/63

Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1527

See https://circleci.com/blog/level-up-go-test-with-gotestsum/ for more info

Reviewed By: a8m

Differential Revision: D17761305

fbshipit-source-id: d16050b4e1825e8c23be5cc0a4b0dff80936b86a
2019-10-05 10:15:47 -07:00
Alex Snast
d581e01bb6 ent/circleci: drop goimports installation
Reviewed By: a8m

Differential Revision: D17761242

fbshipit-source-id: 7ebf67b59eed722ac329b5ab6a152140a013c64c
2019-10-05 10:15:47 -07:00
Alex Snast
397ff3b79d entgo/circleci: run integration tests from docker executer (#28)
Summary:
Switching to docker executer gives us:
- Faster execution times.
- Removes docker-compose dependency.
- Provides view into DB containers output.

Pull Request resolved: https://github.com/facebookincubator/ent/pull/28

Reviewed By: a8m

Differential Revision: D17210011

fbshipit-source-id: 71225939ef16194cf011ec47a5815b42918cbbbd
2019-09-08 04:31:04 -07:00
Alex Snast
06040fae1e ent/circleci: hide cloudfront distribution id echoed by create-invalidation command (#26)
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/26

Example output:
```
> aws cloudfront create-invalidation --distribution-id $CDN_DISTRIBUTION_ID --paths "/*" | jq -M "del(.Location)"                                                                      alexsn@Titan
{
  "Invalidation": {
    "Id": "IXPTPF87PGPXA",
    "Status": "InProgress",
    "CreateTime": "2019-08-25T11:06:53.442Z",
    "InvalidationBatch": {
      "Paths": {
        "Quantity": 1,
        "Items": [
          "/*"
        ]
      },
      "CallerReference": "cli-1566731212-457274"
    }
  }
}
```

Reviewed By: a8m

Differential Revision: D17046012

fbshipit-source-id: a135e9d1cb106af298515b7caafc4a8b1ff6e291
2019-08-25 04:50:15 -07:00
Alex Snast
aaafde973b ent/docs: adding noncurrent version lifecycle rule
Reviewed By: a8m

Differential Revision: D16962458

fbshipit-source-id: 8362c9e0e1de3ca9bb5b49529b1609415f1fb137
2019-08-23 01:11:13 -07:00
Alex Snast
277eed5fd3 ent/circleci: fix docs modified check
Reviewed By: a8m

Differential Revision: D16943795

fbshipit-source-id: 7aae23ba56d3c3789a1d636cd3940d29cb0aab75
2019-08-21 12:07:33 -07:00
Alex Snast
4d79e3d674 ent/docs: adding indexer cloudfront edge lambda
Summary: Indexer adds /index.html to any subfolder requested from cloudfront

Reviewed By: a8m

Differential Revision: D16940085

fbshipit-source-id: 6bc561719bf12677625eb5f1575ba3f06d284c43
2019-08-21 11:30:16 -07:00
Alex Snast
8b345d94bb ent/docs: circleci docs deployment
Summary: keeping docs in sync with entgo.io

Reviewed By: a8m

Differential Revision: D16937603

fbshipit-source-id: 1e07111c3db77ed49a768fc1d369a5ca6df5810e
2019-08-21 07:53:24 -07:00
Ariel Mashraki
24d03df613 ent/ci: install goimports before running tests
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/16

Reviewed By: alexsn

Differential Revision: D16914392

fbshipit-source-id: 7f0fc01fb760b0712341810796d6539f549a9b5f
2019-08-20 06:07:08 -07:00
Ariel Mashraki
10b8c52363 ent/ci: change circleci config file name (#15)
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/15

config.yaml -> config.yml

Reviewed By: idoshveki

Differential Revision: D16914130

fbshipit-source-id: b01c7c11840d9d820ada4b90fb338ad948da2acc
2019-08-20 01:21:15 -07:00
Ariel Mashraki
e0e754717e ent: change ent package name (#1338)
Summary:
Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1338

Pull Request resolved: https://github.com/facebookincubator/ent/pull/14

Reviewed By: alexsn

Differential Revision: D16890825

fbshipit-source-id: 656baaa73f5debab08c849b6b9639caeec2a8ef1
2019-08-19 09:32:14 -07:00