From 872da282b734267d7904f6001607444932d81c56 Mon Sep 17 00:00:00 2001 From: Daniel Ziltener Date: Mon, 2 Mar 2020 00:16:01 +0100 Subject: [PATCH] CircleCI --- .circleci/config.yml | 7 +++++++ build.ps1 | 10 ---------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5e54bcf..3c5b352 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -14,6 +14,13 @@ jobs: - run: iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) - run: Install-Module -Name 7Zip4Powershell -Force -Scope CurrentUser - run: choco install -y msys2 + - run: | + Invoke-WebRequest -UseBasicParsing -Uri "https://code.call-cc.org/releases/$Env:version/chicken-$Env:version.tar.gz" -OutFile '.\chicken.tar.gz' + Expand-7Zip chicken.tar.gz -TargetPath '.\' + Expand-7Zip chicken.tar -TargetPath '.\' + Remove-Item -Force chicken.tar.gz + Remove-Item -Force chicken.tar + mv chicken-* chickenbuild - run: .\build.ps1 - run: choco apikey --key $Env:CHOCO_API_KEY --source https://push.chocolatey.org - run: choco push chicken.$Env:version.nupkg --source https://push.chocolatey.org diff --git a/build.ps1 b/build.ps1 index 007d3ea..afa2f0c 100644 --- a/build.ps1 +++ b/build.ps1 @@ -2,16 +2,6 @@ #$version = '5.2.0' #$binaryversion=11 -# Fetching and unpacking remote files -Invoke-WebRequest -UseBasicParsing -Uri "https://code.call-cc.org/releases/$Env:version/chicken-$Env:version.tar.gz" -OutFile '.\chicken.tar.gz' -#Expand-7Zip chicken.tar.gz -TargetPath '.\' -#Expand-7Zip chicken.tar -TargetPath '.\' -7z x chicken.tar.gz -7z x chicken.tar -Remove-Item -Force chicken.tar.gz -Remove-Item -Force chicken.tar -mv chicken-* chickenbuild - # Building C:\tools\msys64\usr\bin\bash.exe --login -c 'pacboy -Sy --needed --noconfirm binutils:x make:x gcc:x gettext:x readline:x' $env:Path+=";C:\tools\msys64\mingw64\bin"