@@ -94,6 +94,10 @@ commands:
94
94
sudo mv "bazelisk-darwin-<<parameters.bazel-arch>>" /usr/local/bin/bazel
95
95
chmod a+x /usr/local/bin/bazel
96
96
97
+ install-brew-rosetta :
98
+ steps :
99
+ - run : arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
100
+
97
101
# ##########################
98
102
# Python deployment steps #
99
103
# ##########################
@@ -129,6 +133,23 @@ commands:
129
133
tool/test/stop-core-server.sh
130
134
exit $TEST_SUCCESS
131
135
136
+ test-pip-snapshot-mac-rosetta :
137
+ steps :
138
+ - install-brew-rosetta
139
+ - run : |
140
+ /usr/local/bin/brew install [email protected]
141
+ tool/test/start-core-server.sh
142
+ /usr/local/bin/python3.8 -m pip install wheel
143
+ /usr/local/bin/python3.8 -m pip install pip==21.3.1
144
+ /usr/local/bin/python3.8 -m pip install -r python/requirements_dev.txt
145
+ /usr/local/bin/python3.8 -m pip install --extra-index-url https://repo.typedb.com/public/public-snapshot/python/simple typedb-driver==0.0.0+$(git rev-parse HEAD)
146
+ sleep 3
147
+ pushd python/tests/deployment/
148
+ /usr/local/bin/python3.8 -m unittest test && export TEST_SUCCESS=0 || export TEST_SUCCESS=1
149
+ popd
150
+ tool/test/stop-core-server.sh
151
+ exit $TEST_SUCCESS
152
+
132
153
deploy-pip-release-unix :
133
154
steps :
134
155
- install-pip-requirements
@@ -149,6 +170,11 @@ commands:
149
170
steps :
150
171
- run : brew install maven
151
172
173
+ install-maven-mac-rosetta :
174
+ steps :
175
+ - install-brew-rosetta
176
+ - run : /usr/local/bin/brew install maven
177
+
152
178
install-maven-linux :
153
179
steps :
154
180
- run : yum install -y maven
@@ -176,6 +202,15 @@ commands:
176
202
(cd java/test/deployment && mvn test)
177
203
tool/test/stop-core-server.sh
178
204
205
+ test-maven-snapshot-mac-rosetta :
206
+ steps :
207
+ - run : |
208
+ tool/test/start-core-server.sh
209
+ sed -i -e "s/DRIVER_JAVA_VERSION_MARKER/0.0.0-$CIRCLE_SHA1/g" java/test/deployment/pom.xml
210
+ cat java/test/deployment/pom.xml
211
+ (cd java/test/deployment && /usr/local/bin/mvn test)
212
+ tool/test/stop-core-server.sh
213
+
179
214
deploy-maven-jni-release-unix :
180
215
steps :
181
216
- run : |
@@ -529,9 +564,9 @@ jobs:
529
564
- checkout
530
565
- install-bazel-brew :
531
566
bazel-arch : amd64
532
- - test-pip-snapshot-unix
533
- - install-maven-mac
534
- - test-maven-snapshot-unix
567
+ - test-pip-snapshot-mac-rosetta
568
+ - install-maven-mac-rosetta
569
+ - test-maven-snapshot-mac-rosetta
535
570
536
571
test-snapshot-windows-x86_64 :
537
572
executor :
@@ -650,8 +685,9 @@ jobs:
650
685
- install-bazel-apt :
651
686
bazel-arch : amd64
652
687
- run : |
688
+ apt update && apt install software-properties-common
653
689
add-apt-repository ppa:deadsnakes/ppa
654
- apt update && apt install -y python3.9 python3.9-distutils python3-pip
690
+ apt update && apt install -y python3.9 python3.9-distutils python3-pip software-properties-common
655
691
python3.9 -m pip install -U cffi
656
692
export SYNC_DEPENDENCIES_TOKEN=$REPO_GITHUB_TOKEN
657
693
bazel run @vaticle_dependencies//tool/sync:dependencies -- --source ${CIRCLE_PROJECT_REPONAME}@$(cat VERSION)
@@ -672,28 +708,28 @@ workflows:
672
708
- deploy-snapshot-linux-arm64 :
673
709
filters :
674
710
branches :
675
- only : [master, development ]
711
+ only : [master]
676
712
- deploy-snapshot-linux-x86_64 :
677
713
filters :
678
714
branches :
679
- only : [master, development ]
715
+ only : [master]
680
716
- deploy-snapshot-mac-arm64 :
681
717
filters :
682
718
branches :
683
- only : [master, development ]
719
+ only : [master]
684
720
- deploy-snapshot-mac-x86_64 :
685
721
filters :
686
722
branches :
687
- only : [master, development ]
723
+ only : [master]
688
724
- deploy-snapshot-windows-x86_64 :
689
725
filters :
690
726
branches :
691
- only : [master, development ]
727
+ only : [master]
692
728
693
729
- deploy-snapshot-any :
694
730
filters :
695
731
branches :
696
- only : [master, development ]
732
+ only : [master]
697
733
requires :
698
734
- deploy-snapshot-linux-arm64
699
735
- deploy-snapshot-linux-x86_64
@@ -704,43 +740,43 @@ workflows:
704
740
- test-snapshot-linux-arm64 :
705
741
filters :
706
742
branches :
707
- only : [master, development ]
743
+ only : [master]
708
744
requires :
709
745
- deploy-snapshot-linux-arm64
710
746
- deploy-snapshot-any
711
747
- test-snapshot-linux-x86_64 :
712
748
filters :
713
749
branches :
714
- only : [master, development ]
750
+ only : [master]
715
751
requires :
716
752
- deploy-snapshot-linux-x86_64
717
753
- deploy-snapshot-any
718
754
- test-snapshot-mac-arm64 :
719
755
filters :
720
756
branches :
721
- only : [master, development ]
757
+ only : [master]
722
758
requires :
723
759
- deploy-snapshot-mac-arm64
724
760
- deploy-snapshot-any
725
761
- test-snapshot-mac-x86_64 :
726
762
filters :
727
763
branches :
728
- only : [master, development ]
764
+ only : [master]
729
765
requires :
730
766
- deploy-snapshot-mac-x86_64
731
767
- deploy-snapshot-any
732
768
- test-snapshot-windows-x86_64 :
733
769
filters :
734
770
branches :
735
- only : [master, development ]
771
+ only : [master]
736
772
requires :
737
773
- deploy-snapshot-windows-x86_64
738
774
- deploy-snapshot-any
739
775
740
776
- test-snapshot-any :
741
777
filters :
742
778
branches :
743
- only : [master, development ]
779
+ only : [master]
744
780
requires :
745
781
- deploy-snapshot-any
746
782
0 commit comments