Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramon Medeiros committed Jan 19, 2020
1 parent 8ec46dd commit 3879fa5
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ jobs:
- name: checkout repos
run: |
gcloud compute ssh $VM_NAME --zone=$ZONE --command "git clone https://github.com/kimchi-project/wok"
gcloud compute ssh $VM_NAME --zone=$ZONE --command "cd $KIMCHI_DIR; git clone https://github.com/$GITHUB_REPOSITORY"
gcloud compute ssh $VM_NAME --zone=$ZONE --command "cd $KIMCHI_DIR; git fetch; git checkout $GITHUB_SHA"
gcloud compute ssh $VM_NAME --zone=$ZONE --command "git clone https://github.com/$GITHUB_REPOSITORY $KIMCHI_DIR"
gcloud compute ssh $VM_NAME --zone=$ZONE --command "cd $KIMCHI_DIR; git checkout $GITHUB_SHA"
shell: bash

- name: setup wok deps
run: |
gcloud compute ssh $VM_NAME --zone=$ZONE --command "sudo apt update"
gcloud compute ssh $VM_NAME --zone=$ZONE --command "cd $WOK_DIR; bash .github/scripts/setup_wok_ubuntu.sh"
shell: bash

Expand All @@ -46,10 +47,10 @@ jobs:
run: gcloud compute ssh $VM_NAME --zone=$ZONE --command "cd $KIMCHI_DIR; sudo make check-local; sudo make check"
shell: bash

- name: Cleanup instance
if: always()
run: |
gcloud compute instances delete ${VM_NAME} --delete-disks=all --zone=$ZONE -q || true
gcloud compute images delete ${VM_NAME}-image -q || true
gcloud compute disks delete ${VM_NAME}-disk --zone=$ZONE -q || true
shell: bash
# - name: Cleanup instance
# if: always()
# run: |
# gcloud compute instances delete ${VM_NAME} --delete-disks=all --zone=$ZONE -q || true
# gcloud compute images delete ${VM_NAME}-image -q || true
# gcloud compute disks delete ${VM_NAME}-disk --zone=$ZONE -q || true
# shell: bash

0 comments on commit 3879fa5

Please sign in to comment.