-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
47 lines (42 loc) · 1.53 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
kind: pipeline
name: build-and-test-amd64
platform:
os: linux
arch: amd64
steps:
- name: Build and run some stuff
image: ubuntu:19.10
commands:
- apt update -y
- export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true
- apt-get install -y tzdata
- apt-get install -y make gcc g++ clang cmake perl
- apt-get install -y libboost-all-dev libboost-test-dev
- apt-get install -y python3-matplotlib python3-numpy
- apt-get install -y libcfitsio-dev libccfits-dev
- apt-get install -y libeigen3-dev
- apt-get install -y libglade2-dev libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-dev libgtk2.0-dev libgtk-3-dev libglib2.0-dev libnotify-dev
- cmake .
- make -j$(nproc)
- ./genrandspec
- ./findncopy -i rand_spectra -o selected -n data/star_list.txt -e sky
- ./threshold -i selected -o spectra -t 1
- ./trim -l 4700 -u 4800 -i rand_spectra -o spectra_trimmed
- ./der_snr -d rand_spectra -o all_snr.csv
- ./der_snr -d spectra -o selected_snr.csv
- ./der_snr -f rand_spectra/0/0.dat
- ./shift -v 1.0e5 -i rand_spectra
- ./marker -v -i rand_spectra/0/0.dat -i rand_spectra/0/1.dat -l 0.dat -l 1.dat -t Spectra -l "Spectrum 1" -l "Spectrum 2" --elemlist data/line.list --shift 0.1
- ./elemlist -e "Fe II" -w 5001.59 -B
- ./waverage
- name: Unit tests
image: ubuntu:19.10
commands:
- apt update -y
- apt-get install -y cmake libboost-all-dev
- ctest -V
trigger:
event:
- push
- exclude: [ promote , gh-pages, github-pages]
- cron: [daily]