.gitlab-ci.yml 2.34 KB
Newer Older
Drew's avatar
Drew committed
1
stages:
Drew's avatar
Drew committed
2
- test
Drew's avatar
Drew committed
3
- package
Drew's avatar
Drew committed
4
- deploy
Drew's avatar
Drew committed
5 6

osx:
Drew's avatar
Drew committed
7
    stage: test
Drew's avatar
Drew committed
8
    script:
Drew's avatar
Drew committed
9
      - atpm fetch
Drew's avatar
Drew committed
10 11 12
      - atbuild check
      
    tags:
Drew's avatar
Drew committed
13
      - xcode8
Drew's avatar
Drew committed
14 15
      - openswift
      - atbuild
Drew's avatar
Drew committed
16
      - atpm
Drew's avatar
Drew committed
17

Drew's avatar
Drew committed
18 19
osxxcode:
    stage: test
Drew's avatar
Drew committed
20
    script:
Drew's avatar
Drew committed
21
      - atpm fetch
22
      - atbuild coretest --toolchain xcode
Drew's avatar
Drew committed
23 24

    tags:
Drew's avatar
Drew committed
25
      - xcode8
Drew's avatar
Drew committed
26 27
      - openswift
      - atbuild
Drew's avatar
Drew committed
28
      - atpm
Drew's avatar
Drew committed
29 30 31

linux:
    stage: test
Drew's avatar
Drew committed
32
    script:
Drew's avatar
Drew committed
33
      - apt-get update
Drew's avatar
Drew committed
34 35
      - apt-get install atbuild atpm -y
      - atpm fetch
36
      - atbuild coretest
Drew's avatar
Drew committed
37 38 39

    tags:
      - autoscale-linux
Drew's avatar
Drew committed
40
    image: drewcrawford/buildbase:latest
Drew's avatar
Drew committed
41

Drew's avatar
Drew committed
42 43 44 45 46
documentation:
  stage: package
  script:
    - cd docs
    - make html
Drew's avatar
Drew committed
47
    - make dashdoc
Drew's avatar
Drew committed
48 49 50 51 52
  tags:
    - autoscale-linux

  artifacts:
    paths:
Drew's avatar
Drew committed
53 54
      - docs/_build/html
      - docs/_build/Caroline.docset
Drew's avatar
Drew committed
55 56 57

  image: drewcrawford/anarchy-sphinx:latest

Drew's avatar
Drew committed
58 59 60 61 62 63 64 65 66 67 68 69 70 71
deploydocs:
  stage: deploy
  image: python:latest
  dependencies:
    - documentation
  script:
  - pip install awscli
  - aws s3 cp docs/_build/html/* s3://$DOC_BUCKET_NAME/ --recursive 

  when: manual
  variables:
    DOC_BUCKET_NAME: "caroline-docs.sealedabstract.com"


Drew's avatar
Drew committed
72
osxcorepackage:
Drew's avatar
Drew committed
73 74
    stage: package
    script:
Drew's avatar
Drew committed
75
      - atpm fetch
76
      - atbuild core-framework --toolchain xcode --configuration release
Drew's avatar
Drew committed
77 78
      
    tags:
Drew's avatar
Drew committed
79
      - xcode8
Drew's avatar
Drew committed
80 81
      - openswift
      - atbuild
Drew's avatar
Drew committed
82
      - package-framework
Drew's avatar
Drew committed
83
      - atpm
Drew's avatar
Drew committed
84 85

    artifacts:
Drew's avatar
Drew committed
86
      paths:
Drew's avatar
Drew committed
87
        - bin/CarolineCore*.tar.xz
Drew's avatar
Drew committed
88

Drew's avatar
Drew committed
89 90 91
osxtoolpackage:
    stage: package
    script:
Drew's avatar
Drew committed
92
      - atpm fetch
Drew's avatar
Drew committed
93 94 95
      - atbuild package-statictool --configuration release
      
    tags:
Drew's avatar
Drew committed
96
      - xcode8
Drew's avatar
Drew committed
97 98 99
      - openswift
      - atbuild
      - package-homebrew
Drew's avatar
Drew committed
100
      - atpm
Drew's avatar
Drew committed
101 102 103 104 105 106

    artifacts:
      paths:
        - bin/*.tar.xz
        - bin/*.rb

Drew's avatar
Drew committed
107 108 109
linuxtoolpackage:
    stage: package
    script:
Drew's avatar
Drew committed
110
      - apt-get update
Drew's avatar
Drew committed
111 112
      - apt-get install atbuild atpm package-deb -y
      - atpm fetch
Drew's avatar
Drew committed
113 114 115 116 117 118 119 120 121 122
      - atbuild package-statictool --configuration release
      
    tags:
      - autoscale-linux

    artifacts:
      paths:
        - bin/*.tar.xz
        - bin/*.deb

Drew's avatar
Drew committed
123
    image: drewcrawford/buildbase:latest
Drew's avatar
Drew committed
124

Drew's avatar
Drew committed
125
ioscorepackage:
Drew's avatar
Drew committed
126 127
    stage: package
    script:
Drew's avatar
Drew committed
128
      - atpm fetch
129
      - atbuild core-framework --toolchain xcode --platform ios --configuration release
Drew's avatar
Drew committed
130 131
      
    tags:
Drew's avatar
Drew committed
132
      - xcode8
Drew's avatar
Drew committed
133 134
      - openswift
      - atbuild
Drew's avatar
Drew committed
135
      - package-framework
Drew's avatar
Drew committed
136
      - atpm
Drew's avatar
Drew committed
137

Drew's avatar
Drew committed
138
    artifacts:
Drew's avatar
Drew committed
139
      paths:
Drew's avatar
Drew committed
140
        - bin/CarolineCore*.tar.xz