-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (44 loc) · 2.76 KB
/
.travis.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
language: clojure
before_install:
- sudo service postgresql stop
- sudo apt-get update
- sudo apt-get remove --purge postgresql-9.1 postgresql-9.2 postgresql-9.3
- sudo apt-get install postgresql-client-9.4 postgresql-9.4 postgresql-contrib-9.4
- sudo apt-get install software-properties-common
- sudo apt-add-repository ppa:brightbox/ruby-ng -y
- sudo apt-get update
- sudo apt-get install ruby2.2 ruby2.2-dev libruby2.2
- sudo gem2.2 install bundler --no-ri --no-rdoc
before_script:
- pwd
- pg_lsclusters
- sudo su postgres -c "echo 'host all all 127.0.0.1/32 md5' >> /etc/postgresql/9.4/main/pg_hba.conf"
- sudo su postgres -c "echo 'checkpoint_segments = 32' >> /etc/postgresql/9.4/main/postgresql.conf"
- sudo service postgresql reload
- cp etc/example-config.json test/config.json
- sudo su postgres -c "psql -c 'create database fhirterm;'"
# - sudo su postgres -c "psql -c 'create database fhirbase;'"
- sudo su postgres -c "psql -c \"create role fhirterm with superuser login encrypted password 'fhirterm';\""
# - sudo su postgres -c "psql -c \"create role fhirbase with superuser login encrypted password 'fhirbase';\""
- wget -O data/loinc.zip https://www.dropbox.com/s/u4qsfc7ciiaqfqa/LOINC_248_Text.zip?dl=1
- wget -O data/snomed.zip https://www.dropbox.com/s/rr5bho3npfnviji/SnomedCT_Release_INT_20140731_only_data.zip?dl=1
- wget -O data/rxnorm.zip https://www.dropbox.com/s/mipvp6i57es7pew/RxNorm_full_01052015_only_data.zip?dl=1
# - wget -O /tmp/fhirbase.sql https://raw.githubusercontent.com/fhirbase/fhirbase/master/fhirbase--1.0.sql
# - PGPASSWORD=fhirbase psql -U fhirbase -h localhost fhirbase < /tmp/fhirbase.sql
# - wget -O /tmp/fhirplace-master.zip https://github.com/fhirbase/fhirplace/archive/master.zip
# - wget -O /tmp/routemap-master.zip https://github.com/niquola/route-map/archive/master.zip
# - cd .. && unzip /tmp/fhirplace-master.zip
# - unzip /tmp/routemap-master.zip -d fhirplace-master/lib && rm -rf fhirplace-master/lib/route-map && mv fhirplace-master/lib/route-map-master fhirplace-master/lib/route-map
# - cd fhirplace-master
# - lein deps
# - FHIRPLACE_WEB_PORT=3000 FHIRPLACE_SUBPROTOCOL=postgresql FHIRPLACE_SUBNAME="//127.0.0.1:5432/fhirbase" FHIRPLACE_USER=fhirbase FHIRPLACE_PASSWORD=fhirbase lein run > /dev/null &
- wget -O /tmp/fss.zip https://github.com/mlapshin/fhirterm-fss/archive/master.zip
- cd .. && unzip /tmp/fss.zip && cd fhirterm-fss-master
- ruby2.2 -S bundle install
- ruby2.2 -S bundle exec rackup -p 3000 -D
- until $(curl --output /dev/null --silent --head --fail http://localhost:3000); do printf '.'; sleep 5; done
- cd /home/travis/build/fhirbase/fhirterm
script:
- LOG_LEVEL=info lein test :tasks
- sudo cat /var/log/postgresql/postgresql-9.4-main.log
- lein test :integration