Commit 1cbde1a1 authored by Raymond Toy's avatar Raymond Toy
Browse files

Simplify script by adding variables.

Add variables to the download url and for the version so we can share
them across linux and osx builds.
parent 5df20813
Pipeline #262 passed with stage
in 27 minutes and 43 seconds
variables:
download_url: "https://common-lisp.net/project/cmucl/downloads/snapshots/2018/01"
version: "2018-01-x86"
linux-runner:
tags:
- linux
before_script:
- apt-get update -qq && apt-get install -y wget bzip2 make gcc gcc-multilib time bc git
- wget -nv https://common-lisp.net/project/cmucl/downloads/snapshots/2018/01/cmucl-2018-01-x86-linux.tar.bz2
- wget -nv https://common-lisp.net/project/cmucl/downloads/snapshots/2018/01/cmucl-2018-01-x86-linux.extra.tar.bz2
- wget -nv $download_url/cmucl-$version-linux.tar.bz2
- wget -nv $download_url/cmucl-$version-linux.extra.tar.bz2
- mkdir snapshot
- (cd snapshot; tar xjf ../cmucl-2018-01-x86-linux.tar.bz2; tar xjf ../cmucl-2018-01-x86-linux.extra.tar.bz2)
- (cd snapshot; tar xjf ../cmucl-$version-linux.tar.bz2; tar xjf ../cmucl-$version-linux.extra.tar.bz2)
script:
- bin/build.sh -C "" -o snapshot/bin/lisp
- bin/make-dist.sh -I dist linux-4
......@@ -16,9 +20,9 @@ osx-runner:
tags:
- osx
before_script:
- curl -s -o cmucl-2018-01-x86-darwin.tar.bz2 https://common-lisp.net/project/cmucl/downloads/snapshots/2018/01//cmucl-2018-01-x86-darwin.tar.bz2
- curl -s -o cmucl-$version-darwin.tar.bz2 $download_url/cmucl-$version-darwin.tar.bz2
- mkdir snapshot
- (cd snapshot; tar xjf ../cmucl-2018-01-x86-darwin.tar.bz2)
- (cd snapshot; tar xjf ../cmucl-$version-darwin.tar.bz2)
script:
- bin/build.sh -C "" -o snapshot/bin/lisp
- bin/make-dist.sh -I dist darwin-4
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment