|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- version: 2
-
- jobs:
- gcc:
- docker:
- - image: ubuntu:18.04
- working_directory: ~/nnn
- environment:
- CC: gcc
- CI_FORCE_TEST: 1
- steps:
- - run:
- command: |
- apt update -qq
- apt install -y --no-install-recommends git gcc make pkg-config libncursesw5-dev libreadline-dev
- - checkout
- - run:
- command: |
- export CFLAGS=-Werror
- make clean
- make strip
- ls -l nnn
- make clean
-
- gcc-8:
- docker:
- - image: ubuntu:18.04
- working_directory: ~/nnn
- environment:
- CC: gcc-8
- CI_FORCE_TEST: 1
- steps:
- - run:
- command: |
- apt update -qq
- apt install -y --no-install-recommends git gcc-8 make pkg-config libncursesw5-dev libreadline-dev
- - checkout
- - run:
- command: |
- export CFLAGS=-Werror
- make clean
- make strip
- ls -l nnn
- make clean
-
- gcc-9:
- docker:
- - image: ubuntu:18.04
- working_directory: ~/nnn
- environment:
- CC: gcc-9
- CI_FORCE_TEST: 1
- steps:
- - run:
- command: |
- apt update -qq
- apt install -y --no-install-recommends software-properties-common
- apt-add-repository -y ppa:jonathonf/gcc-9.0
- apt update -qq
- apt install -y --no-install-recommends git gcc-9 make pkg-config libncursesw5-dev libreadline-dev
- - checkout
- - run:
- command: |
- export CFLAGS=-Werror
- make clean
- make strip
- ls -l nnn
- make clean
-
- package-and-publish:
- machine: true
- working_directory: ~/nnn
- steps:
- - run:
- name: "package with packagecore"
- command: |
- # Use latest installed python3 from pyenv
- export PYENV_VERSION="$(pyenv versions | grep -Po '\b3\.\d+\.\d+' | tail -1)"
- pip install packagecore
- packagecore -o ./dist/ ${CIRCLE_TAG#v}
- - run:
- name: "publish to GitHub"
- command: |
- go get github.com/tcnksm/ghr
- ghr -t ${GITHUB_API_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -replace ${CIRCLE_TAG} ./dist/
-
- workflows:
- version: 2
-
- test:
- jobs: &all-tests
- - gcc
- - gcc-8
- - gcc-9
-
- nightly:
- triggers:
- - schedule:
- cron: "0 0 * * *"
- filters:
- branches:
- only:
- - master
- jobs: *all-tests
-
- publish-github-release:
- jobs:
- - package-and-publish:
- filters:
- tags:
- only: /^v.*/
- branches:
- ignore: /.*/
|