~adigitoleo/PlateMotionRequests.jl

ref: 1f5f76a61d5593c7b7af7b8f37a1b09d517155b0 PlateMotionRequests.jl/.build.yml -rw-r--r-- 1.1 KiB
1f5f76a6 — adigitoleo dev: Only trigger CI on pushes to main, next or dev 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
image: ubuntu/lts
tasks:
    - prepare: |
        git name-rev HEAD|grep -q -e 'main' -e 'next' -e 'dev' || complete-build
        cd PlateMotionRequests.jl
        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