Welcome to mirror list, hosted at ThFree Co, Russian Federation.

circle.yml - github.com/jangernert/FeedReader.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9e8375daf307d21cb07855217d6130de36fe60a4 (plain)
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
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
      - image: docker.elastic.co/elasticsearch/elasticsearch:5.6.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
          command: 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: Build
          command: |
              cmake . -DBAZQUX=ON -DFEEDHQ=ON
              make
      - run:
          name: Test
          command: make test
      - run:
          name: Generate JUnit XML
          command: |
              mkdir -p /tmp/test-results/junit/
              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