File: config.yml

package info (click to toggle)
feedreader 2.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,868 kB
  • sloc: ansic: 11,829; xml: 879; php: 170; sh: 32; makefile: 16; python: 14
file content (60 lines) | stat: -rw-r--r-- 2,006 bytes parent folder | download | duplicates (2)
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
49
50
51
52
53
54
55
56
57
58
59
60
version: 2
jobs:
  build:
    docker:
      # See docker/Dockerfile
      - image: feedreader/fedora-feedreader-devel
        environment:
          ELASTICSEARCH_URL: http://127.0.0.1:9200
          # Note: The Feedbin API has to run on subdomain "api"
          FEEDBIN_TEST_HOST: http://api.x.localhost:9292
          POSTGRES_USERNAME: postgres
          POSTGRES_HOST: 127.0.0.1
          DATABASE_URL: postgres://postgres@127.0.0.1:5432/feedbin_db
          REDIS_URL: redis://127.0.0.1:6379
      # Feedbin uses an ancient version of ElasticSearch
      # https://github.com/feedbin/feedbin/blob/master/.travis.yml
      - image: elasticsearch:2.3.3
        environment:
          'discovery.type': single-node
      - image: postgres:9.6.5-alpine
      - image: redis:3.2.11-alpine

    working_directory: ~/FeedReader
    steps:
      - run:
          name: Setup Feedbin
          # Wait a few seconds for postgres to startup
          command: sleep 5 && cd /feedbin && rake db:setup
      - run:
          name: Run Feedbin background processes
          command: cd /feedbin && bundle exec foreman start
          background: true
      - run:
          name: Run Feedbin
          command: cd /feedbin && rackup
          background: true
      - checkout
      - run:
          name: Configure
          command: meson builddir
      - run:
          name: Build
          command: cd builddir && ninja -j4
      - run:
          name: Test
          command: cd builddir && ninja test
      - run:
          name: Generate JUnit XML
          command: |
              mkdir -p /tmp/test-results/junit/
              cd builddir
              for f in *.gtester.log; do
                  xsltproc -o /tmp/test-results/junit/$(basename $f .gtester.log).xml ../gtester-to-junit-4.xsl $f;
              done
          when: always
      - store_test_results:
          path: /tmp/test-results
      - store_artifacts:
          path: /tmp/test-results/junit
          destination: test-results