forked from ProjectFrank/circleci-testx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
64 lines (55 loc) · 1.84 KB
/
circle.yml
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
61
62
63
64
# machine:
# environment:
# PATH: ~/.m2/apache-maven-3.3.3/bin:$PATH
# SHORT_SHA1: |
# $(echo $CIRCLE_SHA1 | cut -c1-4)
# post:
# - echo $SHORT_SHA1
# - cd $CIRCLE_PROJECT_REPONAME && git describe --abbrev=0 --tags
# - echo $PREVIOUS_SHA1
# pre:
# - case $CIRCLE_BRANCH in stupid-branch) echo "export thing=\"stuff\"" >> .circlerc;; esac;
# - echo $thing
# - sudo apt-get update; sudo apt-get install jq
# - |
# PREVIOUS_SHA1=$(curl --header "Accept:application/json" https://circleci.com/api/v1/project/ProjectFrank/circleci-test/tree/stupid-branch | jq '.[0].vcs_revision' | tr -d '\"'); echo "export PREVIOUS_SHA1=$PREVIOUS_SHA1" >> ~/.circlerc
# # - sudo sed -i '/ulimit -l unlimited/d' /etc/init.d/cassandra
# # - sudo sed -i '/ulimit -n "$FD_LIMIT"/d' /etc/init.d/cassandra
# - |
# echo "stuff
# more
# stuff"
# services:
# - cassandra
# node:
# version: 0.12.0
machine:
node:
version: 4.1
# post:
# - git log `echo $(curl -H "accept: application/json" https://circleci.com/api/v1/project/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/tree/$CIRCLE_BRANCH\?limit\=100\?circle-token\=$CIRCLE_TOKEN | jq '[.[] | select(.status=="success" or .status=="fixed") | .all_commit_details[-1].commit][0]') | sed -e 's/^"//' -e 's/"$//'`..HEAD
test:
override:
- echo "no tests"
# deployment:
# allthethings:
# tag: /release\/.*/
# commands:
# - echo "all the things":
# parallel: true
dependencies:
# cache_directories:
# - ~/go1.5.linux-amd64.tar.gz
# - ~/.rvm/rubies/ruby-2.2.3
override:
- echo "no deps"
deployment:
testtags:
tag: /test.*/
commands:
- echo "this is for testing tags"
# deployment:
# tomaster:
# commands:
# - ::wait-for-deploy-lock
# - sleep 120