summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: b9add8c4395a245f6114adb9272ace5e031ab5f7 (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
language: cpp

matrix:
  include:

    - os: linux
      addons:
        apt:
          packages:
            - libreadline-dev

    - os: linux
      addons:
        apt:
          packages:
            - libreadline-dev
      env: 
        MAKE_ARGS: ABC_USE_NAMESPACE=xxx
        DEMO_ARGS: -DABC_NAMESPACE=xxx

    - os: osx
      osx_image: xcode10
      addons:
        homebrew:
          packages:
            - readline

script:
  
  - make ${MAKE_ARGS} -j2 abc
  - ./abc -c "r i10.aig; b; ps; b; rw -l; rw -lz; b; rw -lz; b; ps; cec"

  - make ${MAKE_ARGS} libabc.a
  - g++ ${DEMO_ARGS} -Wall -c src/demo.c -o demo.o
  - g++ -o demo demo.o libabc.a -lm -ldl -lreadline -lpthread
  - ./demo i10.aig