.gitlab-ci.yml 1.1 KB
Newer Older
Ievgen Vovk's avatar
Ievgen Vovk committed
1
before_script:
Ievgen Vovk's avatar
Ievgen Vovk committed
2
    - printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main\n" > /etc/apt/sources.list
Ievgen Vovk's avatar
Ievgen Vovk committed
3
    
Ievgen Vovk's avatar
Ievgen Vovk committed
4
5
    - echo "deb http://ftp.de.debian.org/debian testing main" >> /etc/apt/sources.list
    - echo 'APT::Default-Release "stable";' | tee -a /etc/apt/apt.conf.d/00local
Ievgen Vovk's avatar
Ievgen Vovk committed
6
    - cat /etc/apt/sources.list
Ievgen Vovk's avatar
Ievgen Vovk committed
7
    
Ievgen Vovk's avatar
Ievgen Vovk committed
8
    - apt-get update -qq
Ievgen Vovk's avatar
Ievgen Vovk committed
9
    - DEBIAN_FRONTEND=noninteractive apt-get -t testing install -yq python3.6
Ievgen Vovk's avatar
Ievgen Vovk committed
10

Ievgen Vovk's avatar
Ievgen Vovk committed
11
    - apt-get -t testing install -y -qq python3-pip
Ievgen Vovk's avatar
Ievgen Vovk committed
12
13
    - apt-get -t testing install -y -qq python3-pytest
    
Ievgen Vovk's avatar
Ievgen Vovk committed
14
15
    - export CTAPIPE_VERSION=master
    - pip3 install https://github.com/cta-observatory/ctapipe/archive/$CTAPIPE_VERSION.tar.gz
Ievgen Vovk's avatar
Ievgen Vovk committed
16
17
    # - pip3 install https://github.com/cta-observatory/ctapipe-extra/archive/$CTAPIPE_VERSION.tar.gz
    - pip3 install https://github.com/IevgenVovk/ctapipe-extra/archive/$CTAPIPE_VERSION.tar.gz
Ievgen Vovk's avatar
Ievgen Vovk committed
18
    - pip3 install -e .
Ievgen Vovk's avatar
Ievgen Vovk committed
19
    
Ievgen Vovk's avatar
Ievgen Vovk committed
20
21
run_tests:
    script:
Ievgen Vovk's avatar
Ievgen Vovk committed
22
        #  - echo "Yes!"
Ievgen Vovk's avatar
Ievgen Vovk committed
23
        - pytest-3 -vvs