image: ubuntu/lts
tasks:
- prepare: |
cd PlateMotionRequests.jl
git name-rev HEAD|grep -q -e 'main' -e 'next' -e 'dev' || complete-build
JULIA_VERSION='1.7.3'
JULIA_VERSION_SHORT='1.7'
wget "https://julialang-s3.julialang.org/bin/linux/x64/$JULIA_VERSION_SHORT/julia-$JULIA_VERSION-linux-x86_64.tar.gz"
wget "https://julialang-s3.julialang.org/bin/linux/x64/$JULIA_VERSION_SHORT/julia-$JULIA_VERSION-linux-x86_64.tar.gz.asc"
wget https://julialang.org/assets/juliareleases.asc
wget "https://julialang-s3.julialang.org/bin/checksums/julia-$JULIA_VERSION.sha256"
sha256sum -c --ignore-missing "julia-$JULIA_VERSION.sha256"
gpg --import juliareleases.asc
gpg --verify "julia-$JULIA_VERSION-linux-x86_64.tar.gz.asc"
tar -xf "julia-$JULIA_VERSION-linux-x86_64.tar.gz"
ln -s "julia-$JULIA_VERSION/bin/julia"
- build: |
cd PlateMotionRequests.jl
./julia --project -e 'using Pkg; Pkg.instantiate()'
- test: |
cd PlateMotionRequests.jl
./julia --project test/runtests.jl