|
1 | 1 | version: 2.1 |
| 2 | + |
| 3 | +# this allows you to use CircleCI's dynamic configuration feature |
| 4 | +setup: true |
| 5 | + |
2 | 6 | orbs: |
3 | | - |
4 | | - |
| 7 | + continuation: circleci/[email protected] |
| 8 | + |
| 9 | + |
5 | 10 | jobs: |
6 | | - test-dev-tag-as-not-passed: |
7 | | - docker: |
8 | | - - image: rishabhpoddar/supertokens_go_driver_testing |
9 | | - steps: |
10 | | - - checkout |
11 | | - - run: (cd .circleci/ && ./markDevTagAsTestNotPassed.sh) |
12 | | - test-unit: |
13 | | - docker: |
14 | | - - image: rishabhpoddar/supertokens_go_driver_testing |
15 | | - resource_class: large |
16 | | - steps: |
17 | | - - checkout |
18 | | - - run: apt-get install lsof |
19 | | - - run: echo "127.0.0.1 localhost.org" >> /etc/hosts |
20 | | - - run: go version |
21 | | - - run: rm -rf /etc/alternatives/java |
22 | | - - run: ln -s /usr/java/jdk-15.0.1/bin/java /etc/alternatives/java |
23 | | - - run: go get ./... |
24 | | - - run: (cd .circleci/ && ./doUnitTests.sh) |
25 | | - - slack/status |
26 | | - test-website: |
27 | | - docker: |
28 | | - - image: rishabhpoddar/supertokens_go_driver_testing |
29 | | - resource_class: large |
30 | | - steps: |
31 | | - - checkout |
32 | | - - run: apt-get install lsof |
33 | | - - run: git config --global url."https://github.com/".insteadOf ssh://[email protected]/ |
34 | | - - run: echo "127.0.0.1 localhost.org" >> /etc/hosts |
35 | | - - run: go version |
36 | | - - run: rm -rf /etc/alternatives/java |
37 | | - - run: ln -s /usr/java/jdk-15.0.1/bin/java /etc/alternatives/java |
38 | | - - run: go get ./... |
39 | | - - run: (cd .circleci/ && ./website.sh) |
40 | | - - slack/status |
41 | | - test-authreact: |
42 | | - docker: |
43 | | - - image: rishabhpoddar/supertokens_go_driver_testing |
44 | | - resource_class: large |
45 | | - steps: |
46 | | - - checkout |
47 | | - - run: apt-get install lsof |
48 | | - - run: git config --global url."https://github.com/".insteadOf ssh://[email protected]/ |
49 | | - - run: curl -fsSL https://deb.nodesource.com/setup_16.x | bash |
50 | | - - run: apt install -y nodejs |
51 | | - - run: node --version |
52 | | - - run: echo "127.0.0.1 localhost.org" >> /etc/hosts |
53 | | - - run: go version |
54 | | - - run: rm -rf /etc/alternatives/java |
55 | | - - run: ln -s /usr/java/jdk-15.0.1/bin/java /etc/alternatives/java |
56 | | - - run: go get ./... |
57 | | - - run: (cd .circleci/ && ./authReact.sh) |
58 | | - - slack/status |
59 | | - test-success: |
60 | | - docker: |
61 | | - - image: rishabhpoddar/supertokens_go_driver_testing |
62 | | - steps: |
63 | | - - checkout |
64 | | - - run: (cd .circleci/ && ./markAsSuccess.sh) |
65 | | - - slack/status |
| 11 | + setup: |
| 12 | + machine: |
| 13 | + image: ubuntu-2204:2022.04.1 |
| 14 | + steps: |
| 15 | + - checkout |
| 16 | + - run: |
| 17 | + name: Generate config |
| 18 | + command: | |
| 19 | + cd .circleci && ./generateConfig.sh |
| 20 | + - continuation/continue: |
| 21 | + configuration_path: .circleci/config_continue.yml # use newly generated config to continue |
66 | 22 |
|
67 | 23 | workflows: |
68 | | - version: 2 |
69 | | - tagged-build: |
70 | | - jobs: |
71 | | - - test-dev-tag-as-not-passed: |
72 | | - filters: |
73 | | - tags: |
74 | | - only: /dev-v[0-9]+(\.[0-9]+)*/ |
75 | | - branches: |
76 | | - ignore: /.*/ |
77 | | - - test-unit: |
78 | | - requires: |
79 | | - - test-dev-tag-as-not-passed |
80 | | - context: |
81 | | - - slack-notification |
82 | | - filters: |
83 | | - tags: |
84 | | - only: /dev-v[0-9]+(\.[0-9]+)*/ |
85 | | - branches: |
86 | | - ignore: /.*/ |
87 | | - - test-website: |
88 | | - requires: |
89 | | - - test-dev-tag-as-not-passed |
90 | | - context: |
91 | | - - slack-notification |
92 | | - filters: |
93 | | - tags: |
94 | | - only: /dev-v[0-9]+(\.[0-9]+)*/ |
95 | | - branches: |
96 | | - ignore: /.*/ |
97 | | - - test-authreact: |
98 | | - requires: |
99 | | - - test-dev-tag-as-not-passed |
100 | | - context: |
101 | | - - slack-notification |
102 | | - filters: |
103 | | - tags: |
104 | | - only: /dev-v[0-9]+(\.[0-9]+)*/ |
105 | | - branches: |
106 | | - ignore: /.*/ |
107 | | - - test-success: |
108 | | - requires: |
109 | | - - test-unit |
110 | | - - test-website |
111 | | - - test-authreact |
112 | | - context: |
113 | | - - slack-notification |
114 | | - filters: |
115 | | - tags: |
116 | | - only: /dev-v[0-9]+(\.[0-9]+)*/ |
117 | | - branches: |
118 | | - ignore: /.*/ |
| 24 | + version: 2 |
| 25 | + tagged-build: |
| 26 | + jobs: |
| 27 | + - setup: |
| 28 | + filters: |
| 29 | + tags: |
| 30 | + only: /dev-v[0-9]+(\.[0-9]+)*/ |
| 31 | + branches: |
| 32 | + ignore: /.*/ |
0 commit comments