This repository was archived by the owner on Jul 18, 2024. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
File tree Expand file tree Collapse file tree 4 files changed +18
-29
lines changed Expand file tree Collapse file tree 4 files changed +18
-29
lines changed Original file line number Diff line number Diff line change @@ -17,21 +17,21 @@ services:
1717matrix :
1818  fast_finish : true 
1919
20- env :
21-   - TEST_RUN="./tests/test-docker-compose.sh" 
22-   - TEST_RUN="./tests/test-minikube.sh" 
23-   - TEST_RUN="./tests/test-kubernetes.sh" 
24- 
2520before_install :
2621  - sudo apt-get install shellcheck 
27-   - pip install -U -r test-requirements.txt 
28- 
29- install :
30-   - " ./scripts/install.sh" 
31-   - " ./scripts/bx_auth.sh" 
22+   - sudo pip install yamllint 
23+   - git clone https://github.com/IBM/pattern-ci 
3224
3325before_script :
34-   - " ./tests/test-shellcheck.sh" 
35-   - " ./tests/test-yamllint.sh" 
36- 
37- script : " $TEST_RUN" 
26+   - " ./pattern-ci/tests/shellcheck-lint.sh" 
27+   - " ./pattern-ci/tests/yaml-lint.sh" 
28+ 
29+ jobs :
30+   include :
31+     - script : ./tests/test-docker-compose.sh 
32+     - install : ./pattern-ci/scripts/install-minikube.sh 
33+       script : ./tests/test-minikube.sh 
34+     - install :
35+         - ./pattern-ci/scripts/install-ibmcloud.sh 
36+         - ./pattern-ci/scripts/bx-auth.sh 
37+       script : ./tests/test-kubernetes.sh 
Original file line number Diff line number Diff line change 11#! /bin/bash -e
22
33#  shellcheck disable=SC1090
4- source  " $( dirname " $0 " ) " 
4+ source  " $( dirname " $0 " ) " pattern-ci/ scripts/resources.sh
55
66main (){
77    if  !  docker-compose up -d;  then 
Original file line number Diff line number Diff line change 44#  it with: TRAVIS_PULL_REQUEST=false [path to script]
55
66#  shellcheck disable=SC1090
7- source  " $( dirname " $0 " ) " 
7+ source  " $( dirname " $0 " ) " pattern-ci/ scripts/resources.sh
88
99kubeclt_clean () {
1010    echo  " Cleaning cluster" 
Original file line number Diff line number Diff line change 11#! /bin/bash -e
22
33#  shellcheck disable=SC1090
4- source  " $( dirname " $0 " ) " 
5- 
6- setup_minikube () {
7-   export  CHANGE_MINIKUBE_NONE_USER=true
8-   curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.9.0/bin/linux/amd64/kubectl &&  chmod +x kubectl &&  sudo mv kubectl /usr/local/bin/
9-   curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.25.2/minikube-linux-amd64 &&  chmod +x minikube &&  sudo mv minikube /usr/local/bin/
10-   sudo -E minikube start --vm-driver=none --kubernetes-version=v1.9.0
11-   minikube update-context
12-   JSONPATH=' {range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}' ;  until  kubectl get nodes -o jsonpath=" $JSONPATH " 2>&1  |  grep -q " Ready=True" ;  do  sleep 1;  done 
13- }
4+ source  " $( dirname " $0 " ) " 
145
156kubectl_deploy () {
167    echo  " Running scripts/quickstart.sh" 
@@ -39,9 +30,7 @@ verify_deploy(){
3930}
4031
4132main (){
42-     if  !  setup_minikube;  then 
43-         test_failed " $0 " 
44-     elif  !  kubectl_deploy;  then 
33+     if  !  kubectl_deploy;  then 
4534        test_failed " $0 " 
4635    elif  !  verify_deploy;  then 
4736        test_failed " $0 " 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments