diff options
| author | Michael Forney <mforney@mforney.org> | 2020-03-20 18:19:26 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-03-24 14:01:41 -0700 |
| commit | 0e57a5de27f143751703d683a4629050ae599628 (patch) | |
| tree | 06db64156e901930634a0ca08754d89ec8b226e7 | |
| parent | 6512a4d74e8337016900ed50a5896eba1bb152bf (diff) | |
Use builds.sr.ht for full CI build
| -rw-r--r-- | .build.yml | 28 | ||||
| -rw-r--r-- | .travis.yml | 34 | ||||
| -rw-r--r-- | README.md | 2 |
3 files changed, 20 insertions, 44 deletions
@@ -13,7 +13,6 @@ sources: secrets: - 0d338ffe-699f-4e82-85a0-3a4407172bed environment: - PATH: /home/build/x86_64-linux-musl-cross/bin:/home/build/oasis/out/pkg/texi2mdoc:/usr/sbin:/usr/bin:/sbin:/bin PAXREAD: bsdtar -x -f - GIT_SSH_COMMAND: ssh -o StrictHostKeyChecking=no SETS: core desktop devel extra media net @@ -25,26 +24,37 @@ tasks: curl -LO http://musl.cc/x86_64-linux-musl-cross.tgz tar xzf x86_64-linux-musl-cross.tgz - build: | + PATH=$HOME/x86_64-linux-musl-cross/bin:$HOME/bin:$PATH cd oasis cat >config.lua <<EOF + return { + builddir='out', + fs=dofile 'fs.lua', + target={platform='x86_64-linux-musl', cflags='-O2 -pipe', ldflags='-s -static', mc='6m'}, + host={cflags='-pipe', ldflags=''}, + repo={path='$HOME/root-x86_64.git', flags='--bare', tag='tree', branch=os.getenv('SET')}, + } + EOF + # build everything + echo 'return {exclude={}}' >fs.lua + lua5.2 setup.lua + ninja out/pkg/texi2mdoc/texi2mdoc out/pkg/mc/bin/6m out/pkg/mc/bin/muse + mkdir $HOME/bin + cp out/pkg/texi2mdoc/texi2mdoc out/pkg/mc/bin/6m out/pkg/mc/bin/muse $HOME/bin + ninja + # build individual sets + cat >fs.lua <<EOF local sets = dofile 'sets.lua' local set = os.getenv('SET') local spec = {sets[set]} if set ~= 'devel' then spec.exclude = {'^include/', '^lib/.*%.a$'} end - return { - builddir='out', - fs={spec}, - target={platform='x86_64-linux-musl', cflags='-O2 -pipe', ldflags='-s -static'}, - host={cflags='-pipe', ldflags=''}, - repo={path='$HOME/root-x86_64.git', flags='--bare', tag='tree', branch=set}, - } + return {spec} EOF export SET for SET in $SETS ; do lua5.2 setup.lua - ninja out/pkg/texi2mdoc/texi2mdoc ninja commit done - deploy: | diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d8d4c0c2..00000000 --- a/.travis.yml +++ /dev/null @@ -1,34 +0,0 @@ -language: c -dist: trusty -sudo: false -git: - submodules: false -addons: - apt: - packages: - - libwayland-dev - - lua5.2 - - nasm - - pax -install: -- git clone --depth=1 https://github.com/michaelforney/oasis-toolchain /tmp/toolchain -- PATH=$PATH:/tmp/toolchain/bin -script: -- git submodule update --init pkg/samurai/src -- make -C pkg/samurai/src -- | - echo 'return { - builddir="out", - fs={exclude={}}, - target={platform="x86_64-linux-musl", mc="6m", cflags="-O2 -pipe", ldflags="-s -static", pie=true}, - host={cflags="-pipe", ldflags=""}, - repo={path="$builddir/root.git", flags="--bare", tag="tree", branch="master"}, - tls="libressl", - video_drivers={intel=true, nouveau=true} - }' > config.lua -- lua setup.lua -- ./pkg/samurai/src/samu out/pkg/openbsd/pax out/pkg/mc/bin/6m out/pkg/mc/bin/muse out/pkg/file/file out/pkg/texi2mdoc/texi2mdoc -- mkdir /tmp/bin -- cp out/pkg/openbsd/pax out/pkg/mc/bin/6m out/pkg/mc/bin/muse out/pkg/file/file out/pkg/texi2mdoc/texi2mdoc /tmp/bin -- PATH=/tmp/bin:$PATH -- ./pkg/samurai/src/samu commit @@ -1,6 +1,6 @@ # oasis -[](https://travis-ci.org/michaelforney/oasis) +[](https://builds.sr.ht/~mcf/oasis) oasis is a small linux system |
