-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathazure-pipelines.yml
48 lines (46 loc) · 1.92 KB
/
azure-pipelines.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
48
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
pool:
vmImage: ubuntu-latest
jobs:
- job: Test
container:
image: "linuxbrew/brew"
steps:
- script: |
sudo apt-get update -qq
sudo apt-get install -qq automake
displayName: Install C++ modules
- script: |
git submodule init
git submodule update
./autogen.sh
./configure
make
displayName: Compile LINKS
- script: |
mkdir CI_TEST && cd CI_TEST
sudo apt-get install -qq wget
wget http://www.bcgsc.ca/downloads/supplementary/LINKS/K12_full2dONT_longread.fa
wget http://www.bcgsc.ca/downloads/supplementary/LINKS/ecoliK12_abyss_illumina_contig_baseline.fa
echo K12_full2dONT_longread.fa >> K12_F2D.fof
displayName: Download test files
- script: |
export PATH=$(pwd)/src:$(pwd)/bin:$PATH
cd CI_TEST
LINKS_CPP -f ecoliK12_abyss_illumina_contig_baseline.fa -s K12_F2D.fof -d 4000 -k 15 -t 2 -o 0 -e 0.1 -z 500 -p 0.001 -b CI_TEST_1 -v 1 -x 0
displayName: Run test on C++ binary
- script: |
export PATH=$(pwd)/src:$(pwd)/bin:$PATH
cd CI_TEST
LINKS -f ecoliK12_abyss_illumina_contig_baseline.fa -s K12_F2D.fof -d 4000 -k 15 -t 2 -o 0 -e 0.1 -z 500 -p 0.001 -b CI_TEST_2 -v 1 -x 0
displayName: Run test on Makefile wrapper shell script
- script: |
export PATH=$(pwd)/src:$(pwd)/bin:$PATH
cd tests
./run_me.sh
diff <(sort -k1,1 -k2,2n -k3,3n -k4,4n -k5,5n installation_test.tigpair_checkpoint.tsv) <(sort -k1,1 -k2,2n -k3,3n -k4,4n -k5,5n ./expected_outputs/installation_test.tigpair_checkpoint.tsv)
diff <(sort -k1,1 -k2,2n -k3,3n -k4,4n -k5,5n installation_test.scaffolds.fa) <(sort -k1,1 -k2,2n -k3,3n -k4,4n -k5,5n ./expected_outputs/installation_test.scaffolds.fa)
displayName: Run installation test and compare